nikigoli commited on
Commit
3c12f0e
1 Parent(s): 196d0c8

Returned model to cpu after the execution of each gpu function

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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