Ashoka74 commited on
Commit
85d7e1e
1 Parent(s): cd949a9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
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-2.0", trust_remote_code=True)
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))