Skip to content

Free, open-source AI video generator for Mac. Run LTX-2.5 and MiniMax H3 (Hailuo) locally on Apple Silicon: text-to-video and image-to-video with sound, lip-sync, character LoRA training, songs from lyrics (YuE2) and image editing (Qwen-Image-Edit). One-click install via Pinokio. Offline: no cloud, no API key, no NVIDIA GPU.

fix(helper): broaden negative-prompt override to base_pipeline + constants

mrbizarro4e6129b74e85
diff --git a/mlx_warm_helper.py b/mlx_warm_helper.py
index fbfea1c..cf4e437 100644
--- a/mlx_warm_helper.py
+++ b/mlx_warm_helper.py
@@ -1074,14 +1074,25 @@ def _override_default_negative_prompt(negative_prompt: str):
yield False
return
- import ltx_pipelines_mlx.ti2vid_one_stage as one_stage
+ import ltx_pipelines_mlx._base as base_pipeline
+ import ltx_pipelines_mlx.utils.constants as constants
+
+ targets = [
+ mod for mod in (base_pipeline, constants)
+ if hasattr(mod, "DEFAULT_NEGATIVE_PROMPT")
+ ]
+ if not targets:
+ yield False
+ return
- previous = one_stage.DEFAULT_NEGATIVE_PROMPT
- one_stage.DEFAULT_NEGATIVE_PROMPT = f"{previous}, {neg}"
+ previous = {mod: mod.DEFAULT_NEGATIVE_PROMPT for mod in targets}
+ for mod, value in previous.items():
+ mod.DEFAULT_NEGATIVE_PROMPT = f"{value}, {neg}"
try:
yield True
finally:
- one_stage.DEFAULT_NEGATIVE_PROMPT = previous
+ for mod, value in previous.items():
+ mod.DEFAULT_NEGATIVE_PROMPT = value
def _scalar(x) -> float: