Update src/pipeline.py
Browse files- src/pipeline.py +3 -3
src/pipeline.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
import torch
|
| 2 |
from PIL.Image import Image
|
| 3 |
from diffusers import StableDiffusionXLPipeline
|
| 4 |
-
from utils import register_parallel_pipeline_orig, register_faster_orig_forward
|
| 5 |
from pipelines.models import TextToImageRequest
|
| 6 |
from diffusers import DDIMScheduler
|
| 7 |
from torch import Generator
|
|
@@ -29,8 +29,8 @@ def load_pipeline(pipeline=None) -> StableDiffusionXLPipeline:
|
|
| 29 |
|
| 30 |
pipeline = compile_pipe(pipeline)
|
| 31 |
load_pipe(pipeline, dir="/home/sandbox/.cache/huggingface/hub/models--RobertML--cached-pipe-02/snapshots/58d70deae87034cce351b780b48841f9746d4ad7")
|
| 32 |
-
register_parallel_pipeline_orig(pipeline)
|
| 33 |
-
register_faster_orig_forward(pipeline)
|
| 34 |
for _ in range(1):
|
| 35 |
deepcache_output = pipeline(prompt="telestereography, unstrengthen, preadministrator, copatroness, hyperpersonal, paramountness, paranoid, guaniferous", output_type="pil", num_inference_steps=20)
|
| 36 |
pipeline.scheduler.prepare_loss()
|
|
|
|
| 1 |
import torch
|
| 2 |
from PIL.Image import Image
|
| 3 |
from diffusers import StableDiffusionXLPipeline
|
| 4 |
+
# from utils import register_parallel_pipeline_orig, register_faster_orig_forward
|
| 5 |
from pipelines.models import TextToImageRequest
|
| 6 |
from diffusers import DDIMScheduler
|
| 7 |
from torch import Generator
|
|
|
|
| 29 |
|
| 30 |
pipeline = compile_pipe(pipeline)
|
| 31 |
load_pipe(pipeline, dir="/home/sandbox/.cache/huggingface/hub/models--RobertML--cached-pipe-02/snapshots/58d70deae87034cce351b780b48841f9746d4ad7")
|
| 32 |
+
# register_parallel_pipeline_orig(pipeline)
|
| 33 |
+
# register_faster_orig_forward(pipeline)
|
| 34 |
for _ in range(1):
|
| 35 |
deepcache_output = pipeline(prompt="telestereography, unstrengthen, preadministrator, copatroness, hyperpersonal, paramountness, paranoid, guaniferous", output_type="pil", num_inference_steps=20)
|
| 36 |
pipeline.scheduler.prepare_loss()
|