Kaelan commited on
Commit
c39207c
·
1 Parent(s): e02cde8
Files changed (1) hide show
  1. model_tools.py +1 -1
model_tools.py CHANGED
@@ -40,7 +40,7 @@ def get_prediction(model, image_in, pipeline):
40
 
41
  # Predict
42
  with torch.no_grad():
43
- torch_input = torch.Tensor(preprocessed_image).unsqueeze(0).to('cuda')
44
  model_output = model(torch_input)
45
  prediction = pipeline._decode_model_output(model_output, model_input=torch_input)
46
  # Postprocess
 
40
 
41
  # Predict
42
  with torch.no_grad():
43
+ torch_input = torch.Tensor(preprocessed_image).unsqueeze(0).to('cpu')
44
  model_output = model(torch_input)
45
  prediction = pipeline._decode_model_output(model_output, model_input=torch_input)
46
  # Postprocess