Spaces:
Build error
Build error
Update py3/utils/continuous_state.py
Browse files
py3/utils/continuous_state.py
CHANGED
|
@@ -39,7 +39,7 @@ def init_model(config, sol_dir='best_validation', lf_dir='best_validation', hw_d
|
|
| 39 |
if only_load is None or only_load == 'sol' or 'sol' in only_load:
|
| 40 |
sol = StartOfLineFinder(base_0, base_1)
|
| 41 |
sol_state = safe_load.torch_state(os.path.join(config['snapshot_path'], "sol.pt"))
|
| 42 |
-
sol.load_state_dict(sol_state
|
| 43 |
sol.to(device)
|
| 44 |
|
| 45 |
if only_load is None or only_load == 'lf' or 'lf' in only_load:
|
|
|
|
| 39 |
if only_load is None or only_load == 'sol' or 'sol' in only_load:
|
| 40 |
sol = StartOfLineFinder(base_0, base_1)
|
| 41 |
sol_state = safe_load.torch_state(os.path.join(config['snapshot_path'], "sol.pt"))
|
| 42 |
+
sol.load_state_dict(sol_state)
|
| 43 |
sol.to(device)
|
| 44 |
|
| 45 |
if only_load is None or only_load == 'lf' or 'lf' in only_load:
|