English
medical
brain-data
mri
jesseab commited on
Commit
f509253
·
1 Parent(s): 70d8833

Changes model dims

Browse files
Files changed (1) hide show
  1. brlp_lite.py +2 -2
brlp_lite.py CHANGED
@@ -94,8 +94,8 @@ def load_if(checkpoints_path: Optional[str], network: nn.Module) -> nn.Module:
94
  assert os.path.exists(checkpoints_path), 'Invalid path'
95
  # Using context manager to allow MetaTensor
96
  with torch.serialization.safe_globals([MetaTensor]):
97
- #network.load_state_dict(torch.load(checkpoints_path))
98
- network.load_state_dict(torch.load(checkpoints_path, map_location='cpu'))
99
  return network
100
 
101
 
 
94
  assert os.path.exists(checkpoints_path), 'Invalid path'
95
  # Using context manager to allow MetaTensor
96
  with torch.serialization.safe_globals([MetaTensor]):
97
+ network.load_state_dict(torch.load(checkpoints_path))
98
+ #network.load_state_dict(torch.load(checkpoints_path, map_location='cpu'))
99
  return network
100
 
101