Python
fixed bugs
DeepBeepMeep63ce9b70a8a1
diff --git a/models/wan/modules/model.py b/models/wan/modules/model.pyindex 88ad836..5a6ec58 100644--- a/models/wan/modules/model.py+++ b/models/wan/modules/model.py@@ -1619,7 +1619,7 @@ class WanModel(ModelMixin, ConfigMixin):if x_id != 0:should_calc = skips_steps_cache.should_calcelse:- if real_step_no <= skips_steps_cache.start_step or real_step_no == skips_steps_cache.num_steps-1:+ if real_step_no <= skips_steps_cache.start_step or real_step_no == skips_steps_cache.num_steps-1 or skips_steps_cache.previous_modulated_input is None:should_calc = Trueskips_steps_cache.accumulated_rel_l1_distance = 0else:diff --git a/wgp.py b/wgp.pyindex a75b38f..beac70a 100644--- a/wgp.py+++ b/wgp.py@@ -8682,7 +8682,7 @@ def generate_video_tab(update_form = False, state_dict = None, ui_defaults = Nonwith gr.Row(visible = vace or len(control_net_weight_alt_name) >0 ) as control_net_weights_row:control_net_weight = gr.Slider(0.0, 2.0, value=ui_defaults.get("control_net_weight",1), step=0.1, label="Vace 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="Vace Weight #2", visible=vace)- control_net_weight_alt = gr.Slider(0.0, 2.0, value=ui_defaults.get("control_net_weight2",1), step=0.1, label=control_net_weight_alt_name + " Weight", visible=len(control_net_weight_alt_name) >0)+ control_net_weight_alt = gr.Slider(0.0, 2.0, value=ui_defaults.get("control_net_weight_alt",1), step=0.1, label=control_net_weight_alt_name + " Weight", visible=len(control_net_weight_alt_name) >0)with gr.Row(visible = not (hunyuan_t2v or hunyuan_i2v or no_negative_prompt)) as negative_prompt_row:negative_prompt = gr.Textbox(label="Negative Prompt (ignored if no Guidance that is if CFG = 1)", value=ui_defaults.get("negative_prompt", "") )with gr.Column(visible = vace or t2v or test_class_i2v(model_type)) as NAG_col: