Skip to content

Commit

Permalink
resolve workdir for load_model during testing
Browse files Browse the repository at this point in the history
  • Loading branch information
lupus83 committed Mar 30, 2023
1 parent e7934f4 commit 8c5bae9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchpanic/modules/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def load_config(ckpt_path: Union[str, Path]) -> DictConfig:
with open(config_path) as f:
y = yaml_load(f)
workdir = Path().absolute()
idx = workdir.parts.index('panic')
idx = workdir.parts.index('PANIC')
workdir = Path(*workdir.parts[:idx+1])
if 'protonet' in y['model']['net']:
y['model']['net']['protonet']['pretrained_model'] = \
Expand Down

0 comments on commit 8c5bae9

Please sign in to comment.