Spaces:
Sleeping
Sleeping
Update diffusion_lens.py
Browse files- diffusion_lens.py +3 -0
diffusion_lens.py
CHANGED
@@ -4,6 +4,9 @@ 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 |
pipeline_output = pipeline(prompt, skip_layers=skip_layers, num_images_per_prompt=1)
|
|
|
8 |
images = pipeline_output.images
|
|
|
9 |
return images
|
|
|
4 |
pipeline.scheduler = EulerDiscreteScheduler.from_config(pipeline.scheduler.config)
|
5 |
|
6 |
def get_images(prompt, skip_layers=0):
|
7 |
+
print('inside get images')
|
8 |
pipeline_output = pipeline(prompt, skip_layers=skip_layers, num_images_per_prompt=1)
|
9 |
+
print('after pipeline')
|
10 |
images = pipeline_output.images
|
11 |
+
print('got images')
|
12 |
return images
|