Ash2505 commited on
Commit
a9c3d9c
·
verified ·
1 Parent(s): 8d977b7

Update app.py

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