Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -31,10 +31,10 @@ snapshot_download( # 下载整个仓库
|
|
31 |
repo_type="model"
|
32 |
)
|
33 |
|
34 |
-
rmbg_model = AutoModelForImageSegmentation.from_pretrained('
|
35 |
-
torch.set_float32_matmul_precision(['high', 'highest'][0])
|
36 |
-
rmbg_model.to(device)
|
37 |
-
rmbg_model.eval()
|
38 |
|
39 |
model_manager = ModelManager(device="cpu") # 1.3b: device=cpu: uses 6G VRAM, device=device: uses 16G VRAM; about 1-2 min per video
|
40 |
|
|
|
31 |
repo_type="model"
|
32 |
)
|
33 |
|
34 |
+
# rmbg_model = AutoModelForImageSegmentation.from_pretrained('ckpt/RMBG-2.0', trust_remote_code=True)
|
35 |
+
# torch.set_float32_matmul_precision(['high', 'highest'][0])
|
36 |
+
# rmbg_model.to(device)
|
37 |
+
# rmbg_model.eval()
|
38 |
|
39 |
model_manager = ModelManager(device="cpu") # 1.3b: device=cpu: uses 6G VRAM, device=device: uses 16G VRAM; about 1-2 min per video
|
40 |
|