Skip to content

Commit

Permalink
Update train_depth.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffsonyu authored Jul 20, 2023
1 parent 3d79f57 commit a4c169b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion train_depth.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
checkpoint_io = CheckpointIO(out_dir, model=model, optimizer=optimizer)
try:
load_dict = checkpoint_io.load(cfg['test']['model_file'], device=device)
except FileExistsError:
except FileNotFoundError:
load_dict = dict()

epoch_it = load_dict.get('epoch_it', 0)
Expand Down

0 comments on commit a4c169b

Please sign in to comment.