You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/diffusers/pipelines/flux/pipeline_flux_prior_redux.py
+5-4Lines changed: 5 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -149,9 +149,8 @@ def check_inputs(
149
149
prompt_2,
150
150
prompt_embeds=None,
151
151
pooled_prompt_embeds=None,
152
-
prompt_embeds_scale=1.,
153
-
pooled_prompt_embeds_scale=1.,
154
-
152
+
prompt_embeds_scale=1.0,
153
+
pooled_prompt_embeds_scale=1.0,
155
154
):
156
155
ifpromptisnotNoneandprompt_embedsisnotNone:
157
156
raiseValueError(
@@ -175,7 +174,9 @@ def check_inputs(
175
174
raiseValueError(
176
175
"If `prompt_embeds` are provided, `pooled_prompt_embeds` also have to be passed. Make sure to generate `pooled_prompt_embeds` from the same text encoder that was used to generate `prompt_embeds`."
177
176
)
178
-
ifisinstance(prompt_embeds_scale, list) and (isinstance(image, list) andlen(prompt_embeds_scale) !=len(image)):
0 commit comments