Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
FantasticGNU committed Sep 18, 2023
1 parent 72642ff commit d941c82
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions code/train_mvtec.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,8 @@ def main(**args):
del batch_sft
current_step += 1
# torch.cuda.empty_cache()
current_step += 1
if iter_every_epoch % 1000 == 0:
agent.save_model(args['save_path'], 0)
# if iter_every_epoch % 1000 == 0:
# agent.save_model(args['save_path'], 0)
# save at the end of the training
torch.distributed.barrier()
agent.save_model(args['save_path'], 0)
Expand Down

0 comments on commit d941c82

Please sign in to comment.