We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d251c86 commit 6f9bc69Copy full SHA for 6f9bc69
hyvideo/inference.py
@@ -504,7 +504,7 @@ def predict(
504
seed=None,
505
negative_prompt=None,
506
infer_steps=50,
507
- guidance_scale=6,
+ guidance_scale=6.0,
508
flow_shift=5.0,
509
embedded_guidance_scale=None,
510
batch_size=1,
@@ -597,6 +597,8 @@ def predict(
597
# negative prompt
598
if negative_prompt is None or negative_prompt == "":
599
negative_prompt = self.default_negative_prompt
600
+ if guidance_scale == 1.0:
601
+ negative_prompt = ""
602
if not isinstance(negative_prompt, str):
603
raise TypeError(
604
f"`negative_prompt` must be a string, but got {type(negative_prompt)}"
0 commit comments