ckoozzzu commited on
Commit
80bc55d
·
verified ·
1 Parent(s): caf00b5

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. MLBaseModelDriver.py +1 -1
MLBaseModelDriver.py CHANGED
@@ -64,7 +64,7 @@ class MLBaseModelDriver:
64
 
65
  model = model_class(input_dim=4)
66
  state_dict = torch.load(model_file, weights_only=False)
67
- checkpoint = torch.load(model_path, map_location=torch.device("cpu"))
68
  model.load_state_dict(checkpoint['model_state_dict'])
69
  self.preprocessor = checkpoint.get('preprocessor', None)
70
  self.input_dim = checkpoint.get('input_dim', None)
 
64
 
65
  model = model_class(input_dim=4)
66
  state_dict = torch.load(model_file, weights_only=False)
67
+ checkpoint = torch.load(self.model_path, map_location=torch.device("cpu"))
68
  model.load_state_dict(checkpoint['model_state_dict'])
69
  self.preprocessor = checkpoint.get('preprocessor', None)
70
  self.input_dim = checkpoint.get('input_dim', None)