mhussainahmad
commited on
Update src/pipeline.py
Browse files- src/pipeline.py +2 -2
src/pipeline.py
CHANGED
@@ -11,8 +11,8 @@ def load_pipeline() -> StableDiffusionXLPipeline:
|
|
11 |
torch_dtype=torch.float16,
|
12 |
local_files_only=True,
|
13 |
).to("cuda")
|
14 |
-
|
15 |
-
|
16 |
|
17 |
pipeline(prompt="")
|
18 |
|
|
|
11 |
torch_dtype=torch.float16,
|
12 |
local_files_only=True,
|
13 |
).to("cuda")
|
14 |
+
pipeline.scheduler = LCMScheduler.from_config(pipeline.scheduler.config)
|
15 |
+
pipeline.load_lora_weights("./models/sdxl-lcmlora-1024-100k-3000steps")
|
16 |
|
17 |
pipeline(prompt="")
|
18 |
|