Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,7 @@ def extract_object(image, t1, t2):
|
|
27 |
|
28 |
# image = Image.open(imagepath)
|
29 |
image1 = image.copy()
|
30 |
-
input_images = transform_image(image1).unsqueeze(0).to(
|
31 |
|
32 |
# Prediction
|
33 |
with torch.no_grad():
|
|
|
27 |
|
28 |
# image = Image.open(imagepath)
|
29 |
image1 = image.copy()
|
30 |
+
input_images = transform_image(image1).unsqueeze(0).to(device).half()
|
31 |
|
32 |
# Prediction
|
33 |
with torch.no_grad():
|