Skip to content
Python

Fixed low fidelity LTX2 injected frames + added Image Strength slider for end & injected frames

DeepBeepMeep66087a9ae904
diff --git a/README.md b/README.md
index ff2060e..5383016 100644
--- a/README.md
+++ b/README.md
@@ -33,7 +33,7 @@ WanGP supports the Wan (and derived models) but also Hunyuan Video, Flux, Qwen,
## 🔥 Latest Updates :
-### March 12th 2026: WanGP v10.9872, Prompt Enhancer has just Been Abliterated
+### March 13th 2026: WanGP v10.9873, Prompt Enhancer has just Been Abliterated
- **Qwen3.5 VL Abliterated Prompt Enhancer**: new choice of Prompt Enhancer
* Based on widely acclaimed *Qwen3.5 model* that has just been released
@@ -51,6 +51,7 @@ WanGP supports the Wan (and derived models) but also Hunyuan Video, Flux, Qwen,
* New GGUF Checkpoints
* VAE Decoding hopefully should expose less banding
* *Multiple Frames Injections*: inject at different positions the reference frames of your choice (works for LTX-2.0 too)
+ * *Image Strength* can be applied now too *End Frames* & *Injected Frames*
- **WanGP API**: rejoice developers (or agents) among you ! WanGP offers now an internal API that allows you to use WanGP as a backend for your apps. It is subject to compliance to the terms & conditions of WanGP license and more specifically to inform the users of your app that WanGP is working behind the scene.
@@ -61,7 +62,8 @@ WanGP supports the Wan (and derived models) but also Hunyuan Video, Flux, Qwen,
Also note as people preferred mataynone v1 over v2 I have added an option to select matanyone version in the Config / Extension tab
*update 10.9871*: Improved Qwen3.5 GGUF Prompt Enhancer Output Quality & added Think mode\
-*update 10.9872*: Added LTX 2.0/2.3 frames injection
+*update 10.9872*: Added LTX 2.0/2.3 frames injection\
+*update 10.9873*: Fixed low fidelity LTX2 injected frames + added Image Strenght slider for end & injected frames
### March 7th 2026: WanGP v10.981, Expecting an Update ?
diff --git a/docs/PROMPTS.md b/docs/PROMPTS.md
index 0f23ad2..938a71a 100644
--- a/docs/PROMPTS.md
+++ b/docs/PROMPTS.md
@@ -393,18 +393,38 @@ Once that is enabled, the generation screen shows the Prompt Enhancer row near t
Depending on your configuration, it either:
- runs automatically during generation
+
+
- or appears as a button you click manually before generation
+
### Automatic Versus On-Demand
-Automatic mode:
+**Automatic mode:**
+
+The enhanced prompt will appear in the generation preview on the right.
- Pros: fastest workflow, no extra click, good when you always want prompt rewriting
- Pros: useful for models where the enhancer is almost part of the workflow, such as `Wan2.1 Chrono Edit 14B`
- Cons: you do not review the rewritten prompt before generation
- Cons: if the enhancer over-interprets your idea, you only notice it after the run starts or in the saved metadata
-On-demand mode:
+**On-demand mode:**
+
+The original prompt will be commented and an enhanced prompt will appear below. If you are not happy with the enhanced prompt you can request for another and it will overwrite automatically the one that was generated previously.
+Alternatively you can modify the original prompt which is in the comment and the new instructions will be taken into account (no need to remove the # comments prefix).
+
+For instance if you got after the first prompt enhancement request:
+```text
+#!PROMPT!: Jensen Huang is talking on stage and says "Welcome guys, we are going to have a lot of fun today."
+Jensen Huang steps into the spotlight, black leather jacket creaking slightly as he shifts his weight. His glasses reflect the stage lights ...
+```
+
+Modify the prompt in the comment:
+```text
+#!PROMPT!: A woman is talking on stage and says "Welcome guys, we are going to have a lot of fun today."
+She steps onto the dimly lit stage, spotlight cutting through haze. "Welcome guys. We're going to have a lot of fun"...
+```
- Pros: you can inspect and edit the rewritten prompt before generating
- Pros: best for strict prompt formats, edits, lyrics, or dialogue where you want manual control
diff --git a/models/ltx2/ltx2.py b/models/ltx2/ltx2.py
index 8bd83d5..0ba41b4 100644
--- a/models/ltx2/ltx2.py
+++ b/models/ltx2/ltx2.py
@@ -349,7 +349,12 @@ def _coerce_image_list(image_value):
def _to_latent_index(frame_idx: int, stride: int) -> int:
- return int(frame_idx) // int(stride)
+ frame_idx = int(frame_idx)
+ stride = int(stride)
+ if frame_idx <= 0:
+ return 0
+ # Causal LTX VAEs keep pixel frame 0 in its own latent slot.
+ return (frame_idx - 1) // stride + 1
def _normalize_tiling_size(tile_size: int) -> int:
@@ -848,8 +853,7 @@ class LTX2:
video_conditioning = None
masking_source = None
- injected_ref_count = min(len(input_ref_images), len(frames_relative_positions_list))
- if input_frames is not None or input_frames2 is not None or injected_ref_count > 0:
+ if input_frames is not None or input_frames2 is not None:
control_start_frame = int(prefix_frames_count)
expected_guide_frames = max(1, int(frame_num) - control_start_frame + (1 if prefix_frames_count > 1 else 0))
if prefix_frames_count > 1:
@@ -872,8 +876,6 @@ class LTX2:
conditioning_entries.append((input_frames, control_start_frame, control_strength))
if input_frames2 is not None:
conditioning_entries.append((input_frames2, control_start_frame, control_strength))
- for ref_image, frame_idx in zip(input_ref_images[:injected_ref_count], frames_relative_positions_list[:injected_ref_count]):
- conditioning_entries.append((ref_image, int(frame_idx), control_strength))
if conditioning_entries:
video_conditioning = conditioning_entries
if masking_strength > 0.0:
@@ -900,6 +902,7 @@ class LTX2:
images = []
guiding_images = []
+ guiding_images_stage2 = []
images_stage2 = []
stage2_override = False
has_prefix_frames = input_video is not None and torch.is_tensor(input_video) and prefix_frames_count > 0
@@ -924,13 +927,21 @@ class LTX2:
if extra_list is not None:
extra_list.append(entry)
+ def _append_injected_ref_entries(target_list, extra_list=None):
+ injected_ref_count = min(len(input_ref_images), len(frames_relative_positions_list))
+ for ref_image, frame_idx in zip(input_ref_images[:injected_ref_count], frames_relative_positions_list[:injected_ref_count]):
+ entry = (ref_image, int(frame_idx), input_video_strength, "lanczos")
+ target_list.append(entry)
+ if extra_list is not None:
+ extra_list.append(entry)
+
if isinstance(self.pipeline, TI2VidTwoStagesPipeline):
_append_prefix_entries(images, images_stage2)
if image_end is not None:
- entry = (image_end, _to_latent_index(frame_num - 1, latent_stride), 1.0)
- images.append(entry)
- images_stage2.append(entry)
+ entry = (image_end, int(frame_num - 1), input_video_strength)
+ guiding_images.append(entry)
+ guiding_images_stage2.append(entry)
if image_start is not None:
entry = (image_start, _to_latent_index(0, latent_stride), input_video_strength, "lanczos")
@@ -941,12 +952,16 @@ class LTX2:
else:
images.append(entry)
images_stage2.append(entry)
+ _append_injected_ref_entries(guiding_images, guiding_images_stage2)
else:
_append_prefix_entries(images)
if image_start is not None:
images.append((image_start, _to_latent_index(0, latent_stride), input_video_strength, "lanczos"))
if image_end is not None:
- images.append((image_end, _to_latent_index(frame_num - 1, latent_stride), 1.0))
+ entry = (image_end, int(frame_num - 1), input_video_strength)
+ guiding_images.append(entry)
+ guiding_images_stage2.append(entry)
+ _append_injected_ref_entries(guiding_images, guiding_images_stage2)
tiling_config = _build_tiling_config(VAE_tile_size, fps)
interrupt_check = lambda: self._interrupt
@@ -1078,6 +1093,7 @@ class LTX2:
alt_scale=float(alt_scale),
images=images,
guiding_images=guiding_images or None,
+ guiding_images_stage2=guiding_images_stage2 or None,
images_stage2=images_stage2 if stage2_override else None,
video_conditioning=video_conditioning,
video_conditioning_downscale_factor=video_conditioning_downscale_factor,
@@ -1107,6 +1123,8 @@ class LTX2:
num_frames=int(frame_num),
frame_rate=float(fps),
images=images,
+ guiding_images=guiding_images or None,
+ guiding_images_stage2=guiding_images_stage2 or None,
alt_guidance_scale=float(alt_guide_scale),
video_conditioning=video_conditioning,
video_conditioning_downscale_factor=video_conditioning_downscale_factor,
diff --git a/models/ltx2/ltx2_handler.py b/models/ltx2/ltx2_handler.py
index 80a82b3..55fb04b 100644
--- a/models/ltx2/ltx2_handler.py
+++ b/models/ltx2/ltx2_handler.py
@@ -109,7 +109,15 @@ class family_handler:
@staticmethod
def query_family_maps():
- return {}, {}
+
+ models_eqv_map = {
+ "ltx2_19B" : "ltx2_22B",
+ }
+
+ models_comp_map = {
+ "ltx2_19B" : [ "ltx2_22B"],
+ }
+ return models_eqv_map, models_comp_map
@staticmethod
def query_model_family():
diff --git a/models/ltx2/ltx_pipelines/distilled.py b/models/ltx2/ltx_pipelines/distilled.py
index f077667..c2fde6e 100644
--- a/models/ltx2/ltx_pipelines/distilled.py
+++ b/models/ltx2/ltx_pipelines/distilled.py
@@ -31,6 +31,7 @@ from .utils.helpers import (
euler_denoising_loop,
generate_enhanced_prompt,
get_device,
+ image_conditionings_by_adding_guiding_latent,
image_conditionings_by_replacing_latent,
latent_conditionings_by_latent_sequence,
prepare_mask_injection,
@@ -162,6 +163,8 @@ class DistilledPipeline:
num_frames: int,
frame_rate: float,
images: list[tuple[str, int, float]],
+ guiding_images: list[tuple] | None = None,
+ guiding_images_stage2: list[tuple] | None = None,
alt_guidance_scale: float = 1.0,
video_conditioning: list[tuple[str, float]] | None = None,
video_conditioning_downscale_factor: int = 1,
@@ -314,6 +317,16 @@ class DistilledPipeline:
device=self.device,
tiling_config=tiling_config,
)
+ if guiding_images:
+ stage_1_conditionings += image_conditionings_by_adding_guiding_latent(
+ images=guiding_images,
+ height=stage_1_output_shape.height,
+ width=stage_1_output_shape.width,
+ video_encoder=video_encoder,
+ dtype=dtype,
+ device=self.device,
+ tiling_config=tiling_config,
+ )
if video_conditioning:
if int(video_conditioning_downscale_factor or 1) > 1:
stage_1_conditionings += video_conditionings_by_reference_latent(
@@ -440,6 +453,16 @@ class DistilledPipeline:
device=self.device,
tiling_config=tiling_config,
)
+ if guiding_images_stage2:
+ stage_2_conditionings += image_conditionings_by_adding_guiding_latent(
+ images=guiding_images_stage2,
+ height=stage_2_output_shape.height,
+ width=stage_2_output_shape.width,
+ video_encoder=video_encoder,
+ dtype=dtype,
+ device=self.device,
+ tiling_config=tiling_config,
+ )
if latent_conditioning_stage2 is not None:
stage_2_conditionings += latent_conditionings_by_latent_sequence(
latent_conditioning_stage2,
diff --git a/models/ltx2/ltx_pipelines/ti2vid_two_stages.py b/models/ltx2/ltx_pipelines/ti2vid_two_stages.py
index 67810f6..07d03b3 100644
--- a/models/ltx2/ltx_pipelines/ti2vid_two_stages.py
+++ b/models/ltx2/ltx_pipelines/ti2vid_two_stages.py
@@ -140,6 +140,7 @@ class TI2VidTwoStagesPipeline:
alt_guidance_scale: float = 1.0,
alt_scale: float = 0.0,
guiding_images: list[tuple[str, int, float]] | None = None,
+ guiding_images_stage2: list[tuple] | None = None,
images_stage2: list[tuple[str, int, float]] | None = None,
video_conditioning: list[tuple[str, float]] | None = None,
video_conditioning_downscale_factor: int = 1,
@@ -453,6 +454,16 @@ class TI2VidTwoStagesPipeline:
device=self.device,
tiling_config=tiling_config,
)
+ if guiding_images_stage2:
+ stage_2_conditionings += image_conditionings_by_adding_guiding_latent(
+ images=guiding_images_stage2,
+ height=stage_2_output_shape.height,
+ width=stage_2_output_shape.width,
+ video_encoder=video_encoder,
+ dtype=dtype,
+ device=self.device,
+ tiling_config=tiling_config,
+ )
if latent_conditioning_stage2 is not None:
stage_2_conditionings += latent_conditionings_by_latent_sequence(
latent_conditioning_stage2,
diff --git a/wgp.py b/wgp.py
index 15aa50c..e6de027 100644
--- a/wgp.py
+++ b/wgp.py
@@ -98,7 +98,7 @@ AUTOSAVE_TEMPLATE_PATH = AUTOSAVE_FILENAME
CONFIG_FILENAME = "wgp_config.json"
PROMPT_VARS_MAX = 10
target_mmgp_version = "3.7.6"
-WanGP_version = "10.9872"
+WanGP_version = "10.9873"
settings_version = 2.55
max_source_video_frames = 3000
prompt_enhancer_image_caption_model, prompt_enhancer_image_caption_processor, prompt_enhancer_llm_model, prompt_enhancer_llm_tokenizer = None, None, None, None
@@ -590,6 +590,12 @@ def injected_frames_positions_visible(video_prompt_type):
return "F" in (video_prompt_type or "")
+def input_video_strength_visible(model_def, image_prompt_type, video_prompt_type=""):
+ return len((model_def or {}).get("input_video_strength", "")) > 0 and (
+ any_letters(image_prompt_type or "", "SVLE") or injected_frames_positions_visible(video_prompt_type)
+ )
+
+
def parse_custom_setting_typed_value(raw_value, setting_type):
if raw_value is None:
return None, None
@@ -880,7 +886,7 @@ def validate_settings(state, model_type, single_prompt, inputs):
else:
video_source = None
- if len(model_def.get("input_video_strength", ""))==0 or not any_letters(image_prompt_type, "SVL"):
+ if not input_video_strength_visible(model_def, image_prompt_type, video_prompt_type):
input_video_strength = 1.0
if "A" in audio_prompt_type:
@@ -4475,7 +4481,7 @@ def select_video(state, current_gallery_tab, input_file_list, file_selected, aud
if len(video_outpainting) >0:
values += [video_outpainting]
labels += ["Outpainting"]
- if len(model_def.get("input_video_strength", "")) and any_letters(video_image_prompt_type, "SVL"):
+ if input_video_strength_visible(model_def, video_image_prompt_type, video_video_prompt_type):
values += [configs.get("input_video_strength",1)]
labels += ["Input Image Strength"]
@@ -8051,7 +8057,7 @@ def prepare_inputs_dict(target, inputs, model_type = None, model_filename = None
if "G" not in video_prompt_type and not model_def.get("mask_strength_always_enabled", False):
pop += ["masking_strength"]
- if len(model_def.get("input_video_strength", ""))==0 or not any_letters(image_prompt_type, "SVL"):
+ if not input_video_strength_visible(model_def, image_prompt_type, video_prompt_type):
pop += ["input_video_strength"]
@@ -9035,23 +9041,23 @@ def refresh_audio_prompt_type_sources(state, audio_prompt_type, audio_prompt_typ
gr.update(visible=any_letters(audio_prompt_type, "AB")),
)
-def refresh_image_prompt_type_radio(state, image_prompt_type, image_prompt_type_radio):
+def refresh_image_prompt_type_radio(state, image_prompt_type, image_prompt_type_radio, video_prompt_type):
image_prompt_type = del_in_sequence(image_prompt_type, "VLTS")
image_prompt_type = add_to_sequence(image_prompt_type, image_prompt_type_radio)
any_video_source = len(filter_letters(image_prompt_type, "VL"))>0
model_def = get_model_def(get_state_model_type(state))
end_visible = end_frames_option_visible(model_def, image_prompt_type)
- input_strength_visible = len(model_def.get("input_video_strength","")) and any_letters(image_prompt_type, "SVL")
+ input_strength_visible = input_video_strength_visible(model_def, image_prompt_type, video_prompt_type)
return image_prompt_type, gr.update(visible = "S" in image_prompt_type ), gr.update(visible = end_visible and ("E" in image_prompt_type) ), gr.update(visible = "V" in image_prompt_type) , gr.update(visible = input_strength_visible), gr.update(visible = any_video_source), gr.update(visible = end_visible)
-def refresh_image_prompt_type_endcheckbox(state, image_prompt_type, image_prompt_type_radio, end_checkbox):
+def refresh_image_prompt_type_endcheckbox(state, image_prompt_type, image_prompt_type_radio, end_checkbox, video_prompt_type):
image_prompt_type = del_in_sequence(image_prompt_type, "E")
if end_checkbox: image_prompt_type += "E"
image_prompt_type = add_to_sequence(image_prompt_type, image_prompt_type_radio)
model_def = get_model_def(get_state_model_type(state))
- return image_prompt_type, gr.update(visible = end_frames_option_visible(model_def, image_prompt_type) and "E" in image_prompt_type)
+ return image_prompt_type, gr.update(visible = end_frames_option_visible(model_def, image_prompt_type) and "E" in image_prompt_type), gr.update(visible = input_video_strength_visible(model_def, image_prompt_type, video_prompt_type))
-def refresh_video_prompt_type_image_refs(state, video_prompt_type, video_prompt_type_image_refs, image_mode):
+def refresh_video_prompt_type_image_refs(state, video_prompt_type, video_prompt_type_image_refs, image_mode, image_prompt_type):
model_type = get_state_model_type(state)
model_def = get_model_def(model_type)
image_ref_choices = model_def.get("image_ref_choices", None)
@@ -9064,7 +9070,7 @@ def refresh_video_prompt_type_image_refs(state, video_prompt_type, video_prompt_
any_outpainting= image_mode in model_def.get("video_guide_outpainting", [])
rm_bg_visible= visible and not model_def.get("no_background_removal", False)
img_rel_size_visible = visible and model_def.get("any_image_refs_relative_size", False)
- return video_prompt_type, gr.update(visible = visible),gr.update(visible = rm_bg_visible), gr.update(visible = img_rel_size_visible), gr.update(visible = visible and injected_frames_positions_visible(video_prompt_type_image_refs)), gr.update(visible= ("F" in video_prompt_type_image_refs or "K" in video_prompt_type_image_refs or "V" in video_prompt_type) and any_outpainting )
+ return video_prompt_type, gr.update(visible = visible),gr.update(visible = rm_bg_visible), gr.update(visible = img_rel_size_visible), gr.update(visible = visible and injected_frames_positions_visible(video_prompt_type_image_refs)), gr.update(visible= ("F" in video_prompt_type_image_refs or "K" in video_prompt_type_image_refs or "V" in video_prompt_type) and any_outpainting ), gr.update(visible = input_video_strength_visible(model_def, image_prompt_type, video_prompt_type))
def update_image_mask_guide(state, image_mask_guide):
img = image_mask_guide["background"]
@@ -9124,7 +9130,7 @@ def refresh_video_prompt_type_alignment(state, video_prompt_type, video_prompt_t
return video_prompt_type
-def refresh_video_prompt_type_video_guide(state, filter_type, video_prompt_type, video_prompt_type_video_guide, image_mode, old_image_mask_guide_value, old_image_guide_value, old_image_mask_value ):
+def refresh_video_prompt_type_video_guide(state, filter_type, video_prompt_type, video_prompt_type_video_guide, image_mode, old_image_mask_guide_value, old_image_guide_value, old_image_mask_value, image_prompt_type ):
model_type = get_state_model_type(state)
model_def = get_model_def(model_type)
old_video_prompt_type = video_prompt_type
@@ -9156,7 +9162,7 @@ def refresh_video_prompt_type_video_guide(state, filter_type, video_prompt_type,
custom_options = True
custom_checkbox = custom_video_selection.get("type","") == "checkbox"
mask_strength_always_enabled = model_def.get("mask_strength_always_enabled", False)
- return video_prompt_type, gr.update(visible = visible and not image_outputs), image_guide, gr.update(visible = keep_frames_video_guide_visible), gr.update(visible = visible and "G" in video_prompt_type), gr.update(visible = mask_visible and( mask_strength_always_enabled or "G" in video_prompt_type)), gr.update(visible= (visible or injected_frames_positions_visible(video_prompt_type) or "K" in video_prompt_type) and any_outpainting), gr.update(visible= visible and mask_selector_visible and not "U" in video_prompt_type ) , gr.update(visible= mask_visible and not image_outputs), image_mask, image_mask_guide, gr.update(visible= mask_visible), gr.update(visible = ref_images_visible ), gr.update(visible = injected_frames_positions_visible(video_prompt_type)), gr.update(visible= custom_options and not custom_checkbox ), gr.update(visible= custom_options and custom_checkbox )
+ return video_prompt_type, gr.update(visible = visible and not image_outputs), image_guide, gr.update(visible = keep_frames_video_guide_visible), gr.update(visible = visible and "G" in video_prompt_type), gr.update(visible = mask_visible and( mask_strength_always_enabled or "G" in video_prompt_type)), gr.update(visible= (visible or injected_frames_positions_visible(video_prompt_type) or "K" in video_prompt_type) and any_outpainting), gr.update(visible= visible and mask_selector_visible and not "U" in video_prompt_type ) , gr.update(visible= mask_visible and not image_outputs), image_mask, image_mask_guide, gr.update(visible= mask_visible), gr.update(visible = ref_images_visible ), gr.update(visible = injected_frames_positions_visible(video_prompt_type)), gr.update(visible= custom_options and not custom_checkbox ), gr.update(visible= custom_options and custom_checkbox ), gr.update(visible = input_video_strength_visible(model_def, image_prompt_type, video_prompt_type))
def refresh_video_prompt_type_video_custom_dropbox(state, video_prompt_type, video_prompt_type_video_custom_dropbox):
model_type = get_state_model_type(state)
@@ -9758,8 +9764,6 @@ def generate_video_tab(update_form = False, state_dict = None, ui_defaults = Non
image_prompt_type_endcheckbox = gr.Checkbox( value =False, show_label= False, visible= False , scale= 1)
image_start_row, image_start, image_start_extra = get_image_gallery(label= "Images as starting points for new Videos in the Generation Queue" + (" (None for Black Frames)" if model_def.get("black_frame", False) else ''), value = ui_defaults.get("image_start", None), visible= "S" in image_prompt_type_value )
video_source = gr.Video(label= "Video to Continue", height = gallery_height, visible= "V" in image_prompt_type_value, value= ui_defaults.get("video_source", None), elem_id="video_input")
- input_video_strength_label = model_def.get("input_video_strength", "")
- input_video_strength = gr.Slider(0, 1, value=ui_get("input_video_strength", 1.0), step=0.01, label=input_video_strength_label, visible = len(input_video_strength_label) and any_letters(image_prompt_type_value, "SVL"), show_reset_button= False)
image_end_row, image_end, image_end_extra = get_image_gallery(label= get_image_end_label(ui_get("multi_prompts_gen_type")), value = ui_defaults.get("image_end", None), visible=end_option_visible and "E" in image_prompt_type_value)
if model_mode_choices is None:
model_mode = gr.Dropdown(value=None, label="model mode", visible=False)
@@ -10002,6 +10006,9 @@ def generate_video_tab(update_form = False, state_dict = None, ui_defaults = Non
label="Automatic Removal of Background behind People or Objects in Reference Images", scale = 3, visible= "I" in video_prompt_type_value and not no_background_removal
)
+ input_video_strength_label = model_def.get("input_video_strength", "")
+ input_video_strength = gr.Slider(0, 1, value=ui_get("input_video_strength", 1.0), step=0.01, label=input_video_strength_label, visible = input_video_strength_visible(model_def, image_prompt_type_value, ui_get("video_prompt_type")), show_reset_button= False)
+
any_audio_prompt = model_def.get("any_audio_prompt", False)
audio_prompt_type_sources_def = model_def.get("audio_prompt_type_sources", None)
audio_prompt_type_value = ui_get("audio_prompt_type", "A" if any_audio_prompt and audio_prompt_type_sources_def is None else "")
@@ -10949,11 +10956,11 @@ def generate_video_tab(update_form = False, state_dict = None, ui_defaults = Non
audio_prompt_type_sources.change(fn=refresh_audio_prompt_type_sources, inputs=[state, audio_prompt_type, audio_prompt_type_sources], outputs=[audio_prompt_type, audio_guide, audio_guide2, speakers_locations_row, remove_background_sound, normalize_audio_volumes, audio_options_row, audio_guide_row])
prompt_enhancer_mode_dropdown.input(fn=build_prompt_enhancer_value, inputs=[prompt_enhancer_mode_dropdown, prompt_enhancer_think], outputs=[prompt_enhancer], show_progress="hidden")
prompt_enhancer_think.input(fn=build_prompt_enhancer_value, inputs=[prompt_enhancer_mode_dropdown, prompt_enhancer_think], outputs=[prompt_enhancer], show_progress="hidden")
- image_prompt_type_radio.change(fn=refresh_image_prompt_type_radio, inputs=[state, image_prompt_type, image_prompt_type_radio], outputs=[image_prompt_type, image_start_row, image_end_row, video_source, input_video_strength, keep_frames_video_source, image_prompt_type_endcheckbox], show_progress="hidden" )
- image_prompt_type_endcheckbox.change(fn=refresh_image_prompt_type_endcheckbox, inputs=[state, image_prompt_type, image_prompt_type_radio, image_prompt_type_endcheckbox], outputs=[image_prompt_type, image_end_row] )
- video_prompt_type_image_refs.input(fn=refresh_video_prompt_type_image_refs, inputs = [state, video_prompt_type, video_prompt_type_image_refs,image_mode], outputs = [video_prompt_type, image_refs_row, remove_background_images_ref, image_refs_relative_size, frames_positions,video_guide_outpainting_col], show_progress="hidden")
- video_prompt_type_video_guide.input(fn=refresh_video_prompt_type_video_guide, inputs = [state, gr.State(""), video_prompt_type, video_prompt_type_video_guide, image_mode, image_mask_guide, image_guide, image_mask], outputs = [video_prompt_type, video_guide, image_guide, keep_frames_video_guide, denoising_strength, masking_strength, video_guide_outpainting_col, video_prompt_type_video_mask, video_mask, image_mask, image_mask_guide, mask_expand, image_refs_row, frames_positions, video_prompt_type_video_custom_dropbox, video_prompt_type_video_custom_checkbox], show_progress="hidden")
- video_prompt_type_video_guide_alt.input(fn=refresh_video_prompt_type_video_guide, inputs = [state, gr.State("alt"),video_prompt_type, video_prompt_type_video_guide_alt, image_mode, image_mask_guide, image_guide, image_mask], outputs = [video_prompt_type, video_guide, image_guide, keep_frames_video_guide, denoising_strength, masking_strength, video_guide_outpainting_col, video_prompt_type_video_mask, video_mask, image_mask, image_mask_guide, mask_expand, image_refs_row, frames_positions, video_prompt_type_video_custom_dropbox, video_prompt_type_video_custom_checkbox], show_progress="hidden")
+ image_prompt_type_radio.change(fn=refresh_image_prompt_type_radio, inputs=[state, image_prompt_type, image_prompt_type_radio, video_prompt_type], outputs=[image_prompt_type, image_start_row, image_end_row, video_source, input_video_strength, keep_frames_video_source, image_prompt_type_endcheckbox], show_progress="hidden" )
+ image_prompt_type_endcheckbox.change(fn=refresh_image_prompt_type_endcheckbox, inputs=[state, image_prompt_type, image_prompt_type_radio, image_prompt_type_endcheckbox, video_prompt_type], outputs=[image_prompt_type, image_end_row, input_video_strength] )
+ video_prompt_type_image_refs.input(fn=refresh_video_prompt_type_image_refs, inputs = [state, video_prompt_type, video_prompt_type_image_refs,image_mode, image_prompt_type], outputs = [video_prompt_type, image_refs_row, remove_background_images_ref, image_refs_relative_size, frames_positions,video_guide_outpainting_col, input_video_strength], show_progress="hidden")
+ video_prompt_type_video_guide.input(fn=refresh_video_prompt_type_video_guide, inputs = [state, gr.State(""), video_prompt_type, video_prompt_type_video_guide, image_mode, image_mask_guide, image_guide, image_mask, image_prompt_type], outputs = [video_prompt_type, video_guide, image_guide, keep_frames_video_guide, denoising_strength, masking_strength, video_guide_outpainting_col, video_prompt_type_video_mask, video_mask, image_mask, image_mask_guide, mask_expand, image_refs_row, frames_positions, video_prompt_type_video_custom_dropbox, video_prompt_type_video_custom_checkbox, input_video_strength], show_progress="hidden")
+ video_prompt_type_video_guide_alt.input(fn=refresh_video_prompt_type_video_guide, inputs = [state, gr.State("alt"),video_prompt_type, video_prompt_type_video_guide_alt, image_mode, image_mask_guide, image_guide, image_mask, image_prompt_type], outputs = [video_prompt_type, video_guide, image_guide, keep_frames_video_guide, denoising_strength, masking_strength, video_guide_outpainting_col, video_prompt_type_video_mask, video_mask, image_mask, image_mask_guide, mask_expand, image_refs_row, frames_positions, video_prompt_type_video_custom_dropbox, video_prompt_type_video_custom_checkbox, input_video_strength], show_progress="hidden")
# video_prompt_type_video_guide_alt.input(fn=refresh_video_prompt_type_video_guide_alt, inputs = [state, video_prompt_type, video_prompt_type_video_guide_alt, image_mode, image_mask_guide, image_guide, image_mask], outputs = [video_prompt_type, video_guide, image_guide, image_refs_row, denoising_strength, masking_strength, video_mask, mask_expand, image_mask_guide, image_guide, image_mask, keep_frames_video_guide ], show_progress="hidden")
video_prompt_type_video_custom_dropbox.input(fn= refresh_video_prompt_type_video_custom_dropbox, inputs=[state, video_prompt_type, video_prompt_type_video_custom_dropbox], outputs = video_prompt_type)
video_prompt_type_video_custom_checkbox.input(fn= refresh_video_prompt_type_video_custom_checkbox, inputs=[state, video_prompt_type, video_prompt_type_video_custom_checkbox], outputs = video_prompt_type)