Spaces:
Sleeping
Sleeping
Update diffusion_lens.py
Browse files- 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,
|
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')
|