Skip to content

Commit

Permalink
update curve
Browse files Browse the repository at this point in the history
  • Loading branch information
layumi committed May 11, 2023
1 parent 879baf5 commit a64c5b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion train.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,8 @@ def train_model(model, criterion, optimizer, scheduler, num_epochs=25):
save_network(model.module, epoch+1)
else:
save_network(model, epoch+1)
draw_curve(epoch)
if phase == 'val':
draw_curve(epoch)
if phase == 'train':
scheduler.step()
time_elapsed = time.time() - since
Expand Down

0 comments on commit a64c5b6

Please sign in to comment.