Spaces:
Sleeping
Sleeping
Kaelan
commited on
Commit
·
c39207c
1
Parent(s):
e02cde8
cpu
Browse files- 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('
|
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
|