Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -38,8 +38,7 @@ snapshot_download( # 下载整个仓库
|
|
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 |
|
41 |
-
|
42 |
-
wan_dit_path = None
|
43 |
if 'wan14b' in wan_dit_path.lower(): # 14B: uses about 36G, about 10 min per video
|
44 |
model_manager.load_models(
|
45 |
[
|
@@ -50,7 +49,8 @@ if 'wan14b' in wan_dit_path.lower(): # 14B: uses about 36G, about 10 min per vid
|
|
50 |
],
|
51 |
torch_dtype=torch.bfloat16, # float8_e4m3fn fp8量化; bfloat16
|
52 |
)
|
53 |
-
else:
|
|
|
54 |
model_manager.load_models(
|
55 |
[
|
56 |
wan_dit_path if wan_dit_path else 'ckpt/Wan2.1-Fun-1.3B-Control/diffusion_pytorch_model.safetensors',
|
|
|
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 |
|
41 |
+
wan_dit_path = 'train_res/wan1.3b_zh/full_wc0.5_f1gt0.5_real1_2_zh_en_l_s/lightning_logs/version_0/checkpoints/step-step=30000.ckpt'
|
|
|
42 |
if 'wan14b' in wan_dit_path.lower(): # 14B: uses about 36G, about 10 min per video
|
43 |
model_manager.load_models(
|
44 |
[
|
|
|
49 |
],
|
50 |
torch_dtype=torch.bfloat16, # float8_e4m3fn fp8量化; bfloat16
|
51 |
)
|
52 |
+
else:
|
53 |
+
wan_dit_path = None
|
54 |
model_manager.load_models(
|
55 |
[
|
56 |
wan_dit_path if wan_dit_path else 'ckpt/Wan2.1-Fun-1.3B-Control/diffusion_pytorch_model.safetensors',
|