not-lain commited on
Commit
4c33e65
·
verified ·
1 Parent(s): f9858d8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -29,7 +29,7 @@ def fn(image):
29
  image_size = im.size
30
  origin = im.copy()
31
  image = load_img(im)
32
- input_images = transform_image(image).unsqueeze(0).to(birefnet)
33
  # Prediction
34
  with torch.no_grad():
35
  preds = birefnet(input_images)[-1].sigmoid().cpu()
 
29
  image_size = im.size
30
  origin = im.copy()
31
  image = load_img(im)
32
+ input_images = transform_image(image).unsqueeze(0).to(device)
33
  # Prediction
34
  with torch.no_grad():
35
  preds = birefnet(input_images)[-1].sigmoid().cpu()