HoneyTian commited on
Commit
da6d9f1
·
1 Parent(s): 30c0bb4
examples/vm_sound_classification/step_3_train_model.py CHANGED
@@ -197,7 +197,7 @@ def main():
197
 
198
  tgt_path = out_root / pretrained_model.stem
199
  model_pt_file = tgt_path / "model.pt"
200
- with open(model_pt_file, "r") as f:
201
  state_dict = torch.load(f, map_location="cpu")
202
  model.load_state_dict(state_dict=state_dict)
203
 
 
197
 
198
  tgt_path = out_root / pretrained_model.stem
199
  model_pt_file = tgt_path / "model.pt"
200
+ with open(model_pt_file, "rb") as f:
201
  state_dict = torch.load(f, map_location="cpu")
202
  model.load_state_dict(state_dict=state_dict)
203