Skip to content

Commit

Permalink
Update train.py
Browse files Browse the repository at this point in the history
  • Loading branch information
wonbeomjang committed Feb 5, 2022
1 parent 76e2896 commit 5bebb06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def quantize_model(self):
return

print('Load Best Model')
ckpt = f'{self.checkpoint_dir}/mobilenetv2.pt'
ckpt = f'{self.checkpoint_dir}/best.pt'
save_info = torch.load(ckpt, map_location=self.device)
self.net = save_info['model']
self.net.load_state_dict(save_info['state_dict'])
Expand Down

0 comments on commit 5bebb06

Please sign in to comment.