Fly-ShuAI commited on
Commit
373385f
·
verified ·
1 Parent(s): 9f2f058

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -16,13 +16,13 @@ gpu_id = 0
16
  device = f'cuda:{gpu_id}' if torch.cuda.is_available() else 'cpu'
17
 
18
  from huggingface_hub import snapshot_download, hf_hub_download
19
- snapshot_download(
20
- repo_id="briaai/RMBG-2.0",
21
- local_dir="ckpt/RMBG-2.0",
22
- local_dir_use_symlinks=False,
23
- resume_download=True,
24
- repo_type="model"
25
- )
26
  snapshot_download( # 下载整个仓库
27
  repo_id="alibaba-pai/Wan2.1-Fun-1.3B-Control",
28
  local_dir="ckpt/Wan2.1-Fun-1.3B-Control",
 
16
  device = f'cuda:{gpu_id}' if torch.cuda.is_available() else 'cpu'
17
 
18
  from huggingface_hub import snapshot_download, hf_hub_download
19
+ # snapshot_download(
20
+ # repo_id="briaai/RMBG-2.0",
21
+ # local_dir="ckpt/RMBG-2.0",
22
+ # local_dir_use_symlinks=False,
23
+ # resume_download=True,
24
+ # repo_type="model"
25
+ # )
26
  snapshot_download( # 下载整个仓库
27
  repo_id="alibaba-pai/Wan2.1-Fun-1.3B-Control",
28
  local_dir="ckpt/Wan2.1-Fun-1.3B-Control",