rahul7star commited on
Commit
77d0670
·
verified ·
1 Parent(s): 64ebd63

Update app_more1.py

Browse files
Files changed (1) hide show
  1. app_more1.py +2 -1
app_more1.py CHANGED
@@ -42,7 +42,7 @@ pipe = NAGWanPipeline.from_pretrained(
42
  MODEL_ID, vae=vae, torch_dtype=torch.bfloat16
43
  )
44
  pipe.scheduler = UniPCMultistepScheduler.from_config(pipe.scheduler.config, flow_shift=5.0)
45
- pipe.to("cuda")
46
 
47
  causvid_path = hf_hub_download(repo_id=LORA_REPO_ID, filename=LORA_FILENAME)
48
  pipe.load_lora_weights(causvid_path, adapter_name="causvid_lora")
@@ -52,6 +52,7 @@ for name, param in pipe.transformer.named_parameters():
52
  if "blocks.0" in name:
53
  param.data = param.data * 0.25
54
  pipe.fuse_lora()
 
55
  pipe.unload_lora_weights()
56
 
57
  pipe.transformer.__class__.attn_processors = NagWanTransformer3DModel.attn_processors
 
42
  MODEL_ID, vae=vae, torch_dtype=torch.bfloat16
43
  )
44
  pipe.scheduler = UniPCMultistepScheduler.from_config(pipe.scheduler.config, flow_shift=5.0)
45
+
46
 
47
  causvid_path = hf_hub_download(repo_id=LORA_REPO_ID, filename=LORA_FILENAME)
48
  pipe.load_lora_weights(causvid_path, adapter_name="causvid_lora")
 
52
  if "blocks.0" in name:
53
  param.data = param.data * 0.25
54
  pipe.fuse_lora()
55
+ pipe.to("cuda")
56
  pipe.unload_lora_weights()
57
 
58
  pipe.transformer.__class__.attn_processors = NagWanTransformer3DModel.attn_processors