Spaces:
Running
on
Zero
Running
on
Zero
Update app_3.py
Browse files
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.
|
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(
|