Changes model dims
Browse files- 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 |
-
|
| 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 |
|