Skip to content

Commit

Permalink
Update VE.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Junnan Li authored Oct 26, 2021
1 parent 69e9225 commit 9e9a5e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion VE.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ def main(args, config):
}
torch.save(save_obj, os.path.join(args.output_dir, 'checkpoint_best.pth'))
best = float(val_stats['acc'])
best_epoch = epoch

if args.evaluate:
break
Expand Down Expand Up @@ -248,4 +249,4 @@ def main(args, config):

yaml.dump(config, open(os.path.join(args.output_dir, 'config.yaml'), 'w'))

main(args, config)
main(args, config)

0 comments on commit 9e9a5e9

Please sign in to comment.