Update src/pipeline.py
Browse files- src/pipeline.py +4 -4
src/pipeline.py
CHANGED
|
@@ -26,17 +26,17 @@ def load_pipeline(pipeline=None) -> StableDiffusionXLPipeline:
|
|
| 26 |
).to("cuda")
|
| 27 |
|
| 28 |
# Register optimizations for performance
|
| 29 |
-
|
| 30 |
-
|
| 31 |
|
| 32 |
pipeline.scheduler = SchedulerWrapper(DDIMScheduler.from_config(pipeline.scheduler.config))
|
| 33 |
|
| 34 |
-
pipeline = compile_pipe(pipeline)
|
| 35 |
load_pipe(pipeline, dir="/home/sandbox/.cache/huggingface/hub/models--RobertML--cached-pipe-02/snapshots/58d70deae87034cce351b780b48841f9746d4ad7")
|
| 36 |
|
| 37 |
for _ in range(1):
|
| 38 |
deepcache_output = pipeline(prompt="telestereography, unstrengthen, preadministrator, copatroness, hyperpersonal, paramountness, paranoid, guaniferous", output_type="pil", num_inference_steps=20)
|
| 39 |
-
pipeline.scheduler.prepare_loss()
|
| 40 |
for _ in range(2):
|
| 41 |
pipeline(prompt="telestereography, unstrengthen, preadministrator, copatroness, hyperpersonal, paramountness, paranoid, guaniferous", output_type="pil", num_inference_steps=20)
|
| 42 |
return pipeline
|
|
|
|
| 26 |
).to("cuda")
|
| 27 |
|
| 28 |
# Register optimizations for performance
|
| 29 |
+
register_parallel_pipeline(pipeline)
|
| 30 |
+
register_faster_forward(pipeline.unet)
|
| 31 |
|
| 32 |
pipeline.scheduler = SchedulerWrapper(DDIMScheduler.from_config(pipeline.scheduler.config))
|
| 33 |
|
| 34 |
+
# pipeline = compile_pipe(pipeline)
|
| 35 |
load_pipe(pipeline, dir="/home/sandbox/.cache/huggingface/hub/models--RobertML--cached-pipe-02/snapshots/58d70deae87034cce351b780b48841f9746d4ad7")
|
| 36 |
|
| 37 |
for _ in range(1):
|
| 38 |
deepcache_output = pipeline(prompt="telestereography, unstrengthen, preadministrator, copatroness, hyperpersonal, paramountness, paranoid, guaniferous", output_type="pil", num_inference_steps=20)
|
| 39 |
+
# pipeline.scheduler.prepare_loss()
|
| 40 |
for _ in range(2):
|
| 41 |
pipeline(prompt="telestereography, unstrengthen, preadministrator, copatroness, hyperpersonal, paramountness, paranoid, guaniferous", output_type="pil", num_inference_steps=20)
|
| 42 |
return pipeline
|