tokeron commited on
Commit
b1e8435
1 Parent(s): 5fbbdb5

Update diffusion_lens.py

Browse files
Files changed (1) hide show
  1. 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
- images = pipeline(prompt, skip_layers=skip_layers, num_images_per_prompt=1)
 
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