Spaces:
Sleeping
Sleeping
Update diffusion_lens.py
Browse files- diffusion_lens.py +2 -1
diffusion_lens.py
CHANGED
@@ -4,5 +4,6 @@ pipeline = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-
|
|
4 |
pipeline.scheduler = EulerDiscreteScheduler.from_config(pipeline.scheduler.config)
|
5 |
|
6 |
def get_images(prompt, skip_layers=0):
|
7 |
-
|
|
|
8 |
return images
|
|
|
4 |
pipeline.scheduler = EulerDiscreteScheduler.from_config(pipeline.scheduler.config)
|
5 |
|
6 |
def get_images(prompt, skip_layers=0):
|
7 |
+
pipeline_output = pipeline(prompt, skip_layers=skip_layers, num_images_per_prompt=1)
|
8 |
+
images = pipeline_output.images
|
9 |
return images
|