Skip to content

Commit

Permalink
fix to weights path
Browse files Browse the repository at this point in the history
  • Loading branch information
m-lyon committed Apr 11, 2022
1 parent 8baf320 commit 98bf220
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dmri_rcnn/core/weights.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ def get_weights(model_dim: int, shell: Union[int, str], q_in: int) -> str:
Will raise a RuntimeError if not found.
'''
try:
if shell == 'all':
weight_dir = os.path.join(LOCAL_DIR, f'{model_dim}D_RCNN', f'{q_in}in')
if shell in {'all', 'all_norm'}:
weight_dir = os.path.join(LOCAL_DIR, f'{model_dim}D_RCNN', f'{shell}_{q_in}in')
else:
weight_dir = os.path.join(
LOCAL_DIR, f'{model_dim}D_RCNN', f'b{shell}_{q_in}in'
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
'tqdm',
]

version = '0.3.0'
version = '0.3.1'
this_dir = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(this_dir, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
Expand Down

0 comments on commit 98bf220

Please sign in to comment.