restored neg prompt

This commit is contained in:
deepbeepmeep 2025-07-16 01:15:28 +02:00
parent 1e2d74ae7d
commit 49aaa12689

3
wgp.py
View File

@ -6487,6 +6487,7 @@ def generate_video_tab(update_form = False, state_dict = None, ui_defaults = Non
state = gr.State(state_dict) state = gr.State(state_dict)
trigger_refresh_input_type = gr.Text(interactive= False, visible= False) trigger_refresh_input_type = gr.Text(interactive= False, visible= False)
t2v = base_model_type in ["t2v"] t2v = base_model_type in ["t2v"]
t2v_1_3B = base_model_type in ["t2v_1.3B"]
flf2v = base_model_type == "flf2v_720p" flf2v = base_model_type == "flf2v_720p"
diffusion_forcing = "diffusion_forcing" in model_filename diffusion_forcing = "diffusion_forcing" in model_filename
ltxv = "ltxv" in model_filename ltxv = "ltxv" in model_filename
@ -6868,7 +6869,7 @@ def generate_video_tab(update_form = False, state_dict = None, ui_defaults = Non
with gr.Row(visible = vace): with gr.Row(visible = vace):
control_net_weight = gr.Slider(0.0, 2.0, value=ui_defaults.get("control_net_weight",1), step=0.1, label="Control Net Weight #1", visible=vace) control_net_weight = gr.Slider(0.0, 2.0, value=ui_defaults.get("control_net_weight",1), step=0.1, label="Control Net Weight #1", visible=vace)
control_net_weight2 = gr.Slider(0.0, 2.0, value=ui_defaults.get("control_net_weight2",1), step=0.1, label="Control Net Weight #2", visible=vace) control_net_weight2 = gr.Slider(0.0, 2.0, value=ui_defaults.get("control_net_weight2",1), step=0.1, label="Control Net Weight #2", visible=vace)
negative_prompt = gr.Textbox(label="Negative Prompt (ignored if no Guidance that is if CFG = 1)", value=ui_defaults.get("negative_prompt", ""), visible = vace or t2v or test_class_i2v(model_type) ) negative_prompt = gr.Textbox(label="Negative Prompt (ignored if no Guidance that is if CFG = 1)", value=ui_defaults.get("negative_prompt", ""), visible = not (hunyuan_t2v or hunyuan_i2v) )
with gr.Column(visible = vace or t2v or test_class_i2v(model_type)) as NAG_col: with gr.Column(visible = vace or t2v or test_class_i2v(model_type)) as NAG_col:
gr.Markdown("<B>NAG enforces Negative Prompt even if no Guidance is set (CFG = 1), set NAG Scale to > 1 to enable it</B>") gr.Markdown("<B>NAG enforces Negative Prompt even if no Guidance is set (CFG = 1), set NAG Scale to > 1 to enable it</B>")
with gr.Row(): with gr.Row():