Spaces:
Paused
Paused
Update infer.py
Browse files
infer.py
CHANGED
|
@@ -29,7 +29,6 @@ class ModelInference(object):
|
|
| 29 |
self.model = ModelCLR(**self.config["model_config"]).to(self.device)
|
| 30 |
state_dict = torch.load(pretrain_model_path,map_location=self.device)
|
| 31 |
self.model.load_state_dict(state_dict)
|
| 32 |
-
self.model.to(device)
|
| 33 |
self.model.eval()
|
| 34 |
|
| 35 |
|
|
|
|
| 29 |
self.model = ModelCLR(**self.config["model_config"]).to(self.device)
|
| 30 |
state_dict = torch.load(pretrain_model_path,map_location=self.device)
|
| 31 |
self.model.load_state_dict(state_dict)
|
|
|
|
| 32 |
self.model.eval()
|
| 33 |
|
| 34 |
|