tbbl commited on
Commit
6aa0fa1
·
verified ·
1 Parent(s): 8520589

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -40,8 +40,8 @@ LORA_FILENAME = "Wan21_CausVid_14B_T2V_lora_rank32.safetensors"
40
 
41
  vae = AutoencoderKLWan.from_pretrained(MODEL_ID, subfolder="vae", torch_dtype=torch.float32)
42
  wan_path = hf_hub_download(repo_id=SUB_MODEL_ID, filename=SUB_MODEL_FILENAME)
43
- pipe = NAGWanPipeline.from_pretrained(
44
- SUB_MODEL_ID, vae=vae, torch_dtype=torch.bfloat16
45
  )
46
  pipe.scheduler = UniPCMultistepScheduler.from_config(pipe.scheduler.config, flow_shift=5.0)
47
  pipe.to("cuda")
 
40
 
41
  vae = AutoencoderKLWan.from_pretrained(MODEL_ID, subfolder="vae", torch_dtype=torch.float32)
42
  wan_path = hf_hub_download(repo_id=SUB_MODEL_ID, filename=SUB_MODEL_FILENAME)
43
+ pipe = NAGWanPipeline.from_single_file(
44
+ wan_path, vae=vae, torch_dtype=torch.bfloat16
45
  )
46
  pipe.scheduler = UniPCMultistepScheduler.from_config(pipe.scheduler.config, flow_shift=5.0)
47
  pipe.to("cuda")