Ashoka74 commited on
Commit
ec4577d
1 Parent(s): 251ea91

Update app_3.py

Browse files
Files changed (1) hide show
  1. app_3.py +1 -1
app_3.py CHANGED
@@ -158,7 +158,7 @@ from transformers import AutoModelForImageSegmentation
158
  rmbg = AutoModelForImageSegmentation.from_pretrained(
159
  "ZhengPeng7/BiRefNet", trust_remote_code=True
160
  )
161
- rmbg = rmbg.to_device(device=device, dtype=torch.float32)
162
 
163
  # remove bg
164
  # rmbg = AutoModelForImageSegmentation.from_pretrained(
 
158
  rmbg = AutoModelForImageSegmentation.from_pretrained(
159
  "ZhengPeng7/BiRefNet", trust_remote_code=True
160
  )
161
+ rmbg = rmbg.to(device=device, dtype=torch.float32)
162
 
163
  # remove bg
164
  # rmbg = AutoModelForImageSegmentation.from_pretrained(