Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -71,8 +71,7 @@ vae = AutoencoderKL.from_pretrained(sd15_name, subfolder="vae")
|
|
71 |
unet = UNet2DConditionModel.from_pretrained(sd15_name, subfolder="unet")
|
72 |
# Load model directly
|
73 |
from transformers import AutoModelForImageSegmentation
|
74 |
-
rmbg = AutoModelForImageSegmentation.from_pretrained("briaai/RMBG-
|
75 |
-
|
76 |
|
77 |
model = DepthAnythingV2(encoder='vits', features=64, out_channels=[48, 96, 192, 384])
|
78 |
model.load_state_dict(torch.load('checkpoints/depth_anything_v2_vits.pth', map_location=device))
|
|
|
71 |
unet = UNet2DConditionModel.from_pretrained(sd15_name, subfolder="unet")
|
72 |
# Load model directly
|
73 |
from transformers import AutoModelForImageSegmentation
|
74 |
+
rmbg = AutoModelForImageSegmentation.from_pretrained("briaai/RMBG-1.4", trust_remote_code=True)
|
|
|
75 |
|
76 |
model = DepthAnythingV2(encoder='vits', features=64, out_channels=[48, 96, 192, 384])
|
77 |
model.load_state_dict(torch.load('checkpoints/depth_anything_v2_vits.pth', map_location=device))
|