tokeron commited on
Commit
0378b53
1 Parent(s): 6960fd2

Update diffusion_lens.py

Browse files
Files changed (1) hide show
  1. diffusion_lens.py +2 -1
diffusion_lens.py CHANGED
@@ -10,8 +10,9 @@ device = "cuda" if torch.cuda.is_available() else "cpu"
10
  # Move the pipeline to the device
11
  pipeline.to(device)
12
 
13
- def get_images(prompt, skip_layers=0):
14
  print('inside get images')
 
15
  pipeline_output = pipeline(prompt, skip_layers=skip_layers, num_images_per_prompt=1, return_tensors=False)
16
  print('after pipeline')
17
  images = pipeline_output.images
 
10
  # Move the pipeline to the device
11
  pipeline.to(device)
12
 
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