Spaces:
Sleeping
Sleeping
Update clip_slider_pipeline.py
Browse files- clip_slider_pipeline.py +3 -3
clip_slider_pipeline.py
CHANGED
@@ -108,7 +108,7 @@ class CLIPSlider:
|
|
108 |
|
109 |
|
110 |
torch.manual_seed(seed)
|
111 |
-
image = self.pipe(prompt_embeds=prompt_embeds, **pipeline_kwargs).images
|
112 |
|
113 |
return image
|
114 |
|
@@ -272,7 +272,7 @@ class CLIPSliderXL(CLIPSlider):
|
|
272 |
|
273 |
torch.manual_seed(seed)
|
274 |
image = self.pipe(prompt_embeds=prompt_embeds, pooled_prompt_embeds=pooled_prompt_embeds,
|
275 |
-
**pipeline_kwargs).images
|
276 |
|
277 |
return image
|
278 |
|
@@ -419,6 +419,6 @@ class CLIPSlider3(CLIPSlider):
|
|
419 |
|
420 |
torch.manual_seed(seed)
|
421 |
image = self.pipe(prompt_embeds=prompt_embeds, pooled_prompt_embeds=clip_pooled_prompt_embeds,
|
422 |
-
**pipeline_kwargs).images
|
423 |
|
424 |
return image
|
|
|
108 |
|
109 |
|
110 |
torch.manual_seed(seed)
|
111 |
+
image = self.pipe(prompt_embeds=prompt_embeds, **pipeline_kwargs).images[0]
|
112 |
|
113 |
return image
|
114 |
|
|
|
272 |
|
273 |
torch.manual_seed(seed)
|
274 |
image = self.pipe(prompt_embeds=prompt_embeds, pooled_prompt_embeds=pooled_prompt_embeds,
|
275 |
+
**pipeline_kwargs).images[0]
|
276 |
|
277 |
return image
|
278 |
|
|
|
419 |
|
420 |
torch.manual_seed(seed)
|
421 |
image = self.pipe(prompt_embeds=prompt_embeds, pooled_prompt_embeds=clip_pooled_prompt_embeds,
|
422 |
+
**pipeline_kwargs).images[0]
|
423 |
|
424 |
return image
|