Returned model to cpu after the execution of each gpu function
Browse files
app.py
CHANGED
|
@@ -156,6 +156,7 @@ def build_model_and_transforms(args):
|
|
| 156 |
model.load_state_dict(checkpoint, strict=False)
|
| 157 |
|
| 158 |
model.eval()
|
|
|
|
| 159 |
|
| 160 |
return model, data_transform
|
| 161 |
|
|
|
|
| 156 |
model.load_state_dict(checkpoint, strict=False)
|
| 157 |
|
| 158 |
model.eval()
|
| 159 |
+
model.cpu()
|
| 160 |
|
| 161 |
return model, data_transform
|
| 162 |
|