summaryrefslogtreecommitdiffstats
path: root/pipelines
diff options
context:
space:
mode:
Diffstat (limited to 'pipelines')
-rw-r--r--pipelines/stable_diffusion/vlpn_stable_diffusion.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pipelines/stable_diffusion/vlpn_stable_diffusion.py b/pipelines/stable_diffusion/vlpn_stable_diffusion.py
index 3da0169..e90528d 100644
--- a/pipelines/stable_diffusion/vlpn_stable_diffusion.py
+++ b/pipelines/stable_diffusion/vlpn_stable_diffusion.py
@@ -159,6 +159,9 @@ class VlpnStableDiffusion(DiffusionPipeline):
159 159
160 batch_size = len(prompt) 160 batch_size = len(prompt)
161 161
162 if negative_prompt is None:
163 negative_prompt = ""
164
162 if isinstance(negative_prompt, str): 165 if isinstance(negative_prompt, str):
163 negative_prompt = [negative_prompt] * batch_size 166 negative_prompt = [negative_prompt] * batch_size
164 167