tokeron commited on
Commit
5b7fb44
1 Parent(s): 0378b53

Update diffusion_lens.py

Browse files
Files changed (1) hide show
  1. diffusion_lens.py +1 -1
diffusion_lens.py CHANGED
@@ -13,7 +13,7 @@ pipeline.to(device)
13
  def get_images(prompt, skip_layers):
14
  print('inside get images')
15
  print(f'skipping {skip_layers}')
16
- pipeline_output = pipeline(prompt, skip_layers=skip_layers, num_images_per_prompt=1, return_tensors=False)
17
  print('after pipeline')
18
  images = pipeline_output.images
19
  print('got images')
 
13
  def get_images(prompt, skip_layers):
14
  print('inside get images')
15
  print(f'skipping {skip_layers}')
16
+ pipeline_output = pipeline(prompt, clip_skip=skip_layers, num_images_per_prompt=1, return_tensors=False)
17
  print('after pipeline')
18
  images = pipeline_output.images
19
  print('got images')