Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -18,19 +18,11 @@ device = f'cuda:{gpu_id}' if torch.cuda.is_available() else 'cpu'
|
|
18 |
from modelscope import snapshot_download
|
19 |
model_dir = snapshot_download(
|
20 |
model_id = 'AI-ModelScope/RMBG-2.0',
|
21 |
-
local_dir = 'ckpt/',
|
22 |
)
|
23 |
print(model_dir)
|
24 |
|
25 |
# from huggingface_hub import snapshot_download, hf_hub_download
|
26 |
-
# hf_hub_download(
|
27 |
-
# repo_id="alibaba-pai/Wan2.1-Fun-1.3B-Control",
|
28 |
-
# filename="Wan2.1_VAE.pth",
|
29 |
-
# local_dir="ckpt/Wan2.1-Fun-1.3B-Control/",
|
30 |
-
# local_dir_use_symlinks=False,
|
31 |
-
# resume_download=True,
|
32 |
-
# )
|
33 |
-
|
34 |
# snapshot_download( # 下载整个仓库; 下briaai/RMBG-2.0需要token
|
35 |
# repo_id="alibaba-pai/Wan2.1-Fun-1.3B-Control",
|
36 |
# local_dir="ckpt/Wan2.1-Fun-1.3B-Control",
|
|
|
18 |
from modelscope import snapshot_download
|
19 |
model_dir = snapshot_download(
|
20 |
model_id = 'AI-ModelScope/RMBG-2.0',
|
21 |
+
local_dir = 'ckpt/RMBG-2.0',
|
22 |
)
|
23 |
print(model_dir)
|
24 |
|
25 |
# from huggingface_hub import snapshot_download, hf_hub_download
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
# snapshot_download( # 下载整个仓库; 下briaai/RMBG-2.0需要token
|
27 |
# repo_id="alibaba-pai/Wan2.1-Fun-1.3B-Control",
|
28 |
# local_dir="ckpt/Wan2.1-Fun-1.3B-Control",
|