rahul7star commited on
Commit
9418431
·
verified ·
1 Parent(s): 09640d1

Update app_t2v.py

Browse files
Files changed (1) hide show
  1. app_t2v.py +20 -7
app_t2v.py CHANGED
@@ -29,13 +29,26 @@ print("Loading Stable Diffusion XL model...")
29
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
30
 
31
  # Initialize SDXL pipeline
 
 
 
 
 
 
 
 
 
32
  sdxl_pipe = StableDiffusionXLPipeline.from_pretrained(
33
- "votepurchase/pornmasterPro_noobV3VAE",
34
  torch_dtype=torch.float16,
35
  variant="fp16",
36
  use_safetensors=True
37
  )
38
 
 
 
 
 
39
  sdxl_pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(sdxl_pipe.scheduler.config)
40
  sdxl_pipe.to(device)
41
 
@@ -90,12 +103,12 @@ wan_pipeline = wan.WanTI2V(
90
  ###LORA ####
91
 
92
 
93
- LORA_REPO_ID = "Kijai/WanVideo_comfy"
94
- LORA_FILENAME = "Wan22-Lightning/Wan2.2-Lightning_T2V-A14B-4steps-lora_LOW_fp16.safetensors"
95
- causvid_path = hf_hub_download(repo_id=LORA_REPO_ID, filename=LORA_FILENAME)
96
- wan_pipeline.load_lora_weights(causvid_path, adapter_name="causvid_lora")
97
- wan_pipeline.set_adapters(["causvid_lora"], adapter_weights=[0.95])
98
- wan_pipeline.fuse_lora()
99
 
100
 
101
 
 
29
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
30
 
31
  # Initialize SDXL pipeline
32
+ # sdxl_pipe = StableDiffusionXLPipeline.from_pretrained(
33
+ # "votepurchase/pornmasterPro_noobV3VAE",
34
+ # torch_dtype=torch.float16,
35
+ # variant="fp16",
36
+ # use_safetensors=True
37
+ # )
38
+
39
+
40
+
41
  sdxl_pipe = StableDiffusionXLPipeline.from_pretrained(
42
+ "stablediffusionapi/omnigenxl-nsfw-sfw",
43
  torch_dtype=torch.float16,
44
  variant="fp16",
45
  use_safetensors=True
46
  )
47
 
48
+
49
+
50
+
51
+
52
  sdxl_pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(sdxl_pipe.scheduler.config)
53
  sdxl_pipe.to(device)
54
 
 
103
  ###LORA ####
104
 
105
 
106
+ # LORA_REPO_ID = "Kijai/WanVideo_comfy"
107
+ # LORA_FILENAME = "Wan22-Lightning/Wan2.2-Lightning_T2V-A14B-4steps-lora_LOW_fp16.safetensors"
108
+ # causvid_path = hf_hub_download(repo_id=LORA_REPO_ID, filename=LORA_FILENAME)
109
+ # wan_pipeline.load_lora_weights(causvid_path, adapter_name="causvid_lora")
110
+ # wan_pipeline.set_adapters(["causvid_lora"], adapter_weights=[0.95])
111
+ # wan_pipeline.fuse_lora()
112
 
113
 
114