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.
Python ai-filmmakingai-videoai-video-generatorapple-siliconhailuoimage-to-videolip-synclocal-ailora-trainingltx-2ltx-2-5ltx-videomacosminimax-h3mlxmusic-generationoffline-aipinokiotext-to-videovideo-generation
fix: gallery exclusion bug + aggressive_cleanup on pipeline rebuild (#7)
colinbdesign934260f401b6
diff --git a/mlx_ltx_panel.py b/mlx_ltx_panel.pyindex ef784c7..a7194df 100644--- a/mlx_ltx_panel.py+++ b/mlx_ltx_panel.py@@ -3126,6 +3126,7 @@ def list_outputs(include_hidden: bool = False) -> list[dict]:# apart from real outputs.in_flight_paths: set[str] = set()failed_paths: set[str] = set()+ succeeded_paths: set[str] = set()with LOCK:hidden_snap = set(HIDDEN_PATHS)cur = STATE.get("current")@@ -3135,11 +3136,21 @@ def list_outputs(include_hidden: bool = False) -> list[dict]:if v:in_flight_paths.add(str(v))for h in (STATE.get("history") or []):- if (h.get("status") or "") in ("failed", "cancelled", "error"):+ status = (h.get("status") or "")+ if status in ("failed", "cancelled", "error"):for k in ("raw_path", "output_path", "native_path", "upscaled_path"):v = h.get(k)if v:failed_paths.add(str(v))+ elif status == "done":+ for k in ("raw_path", "output_path", "native_path", "upscaled_path"):+ v = h.get(k)+ if v:+ succeeded_paths.add(str(v))+ # A path that appears in both a failed and a done entry was successfully+ # re-rendered after a crash (e.g. cold-start Metal failure + auto-retry).+ # The successful render wins — remove it from the exclusion set.+ failed_paths -= succeeded_pathsinflight_mtime_cutoff = time.time() - 2.0out = []for p in files:diff --git a/mlx_warm_helper.py b/mlx_warm_helper.pyindex 3a21793..ca0fceb 100644--- a/mlx_warm_helper.py+++ b/mlx_warm_helper.py@@ -599,6 +599,10 @@ def get_pipe(kind: str, loras: list[dict] | None = None,global _t2v_pipe, _i2v_pipe, _extend_pipeglobal _t2v_lora_key, _i2v_lora_key, _extend_lora_keyglobal _extend_model_dir+ try:+ from ltx_core_mlx.utils.memory import aggressive_cleanup as _ac+ except Exception:+ _ac = lambda: None# Upstream refactor 2026-05-09 (commits d6cc3d1, 493aec2) renamed +# removed several pipeline classes. Past intermediate commits had a# mix of old + new names. Three import strategies in priority order:@@ -642,6 +646,7 @@ def get_pipe(kind: str, loras: list[dict] | None = None,emit({"event": "log","line": f"LoRA set changed; reloading I2V pipeline."})_i2v_pipe = None+ _ac()emit({"event": "log","line": "Loading I2V pipeline (first job is the slow one)..."})pipe = ImageToVideoPipeline(@@ -661,6 +666,7 @@ def get_pipe(kind: str, loras: list[dict] | None = None,emit({"event": "log","line": f"{why}; reloading Extend pipeline."})_extend_pipe = None+ _ac()emit({"event": "log","line": f"Loading Extend pipeline (heavier — uses dev transformer at {ext_dir})..."})pipe = ExtendPipeline(@@ -677,6 +683,7 @@ def get_pipe(kind: str, loras: list[dict] | None = None,emit({"event": "log","line": f"LoRA set changed; reloading T2V pipeline."})_t2v_pipe = None+ _ac()emit({"event": "log","line": "Loading T2V pipeline (first job is the slow one)..."})pipe = TextToVideoPipeline(@@ -726,6 +733,10 @@ def get_hq_pipe(model_dir: str, loras: list[dict] | None = None):fp = _lora_fingerprint(loras)+ try:+ from ltx_core_mlx.utils.memory import aggressive_cleanup as _ac+ except Exception:+ _ac = lambda: Nonewith _pipe_lock:release_pipelines(keep_kind="hq")if (_hq_pipe is None@@ -735,6 +746,7 @@ def get_hq_pipe(model_dir: str, loras: list[dict] | None = None):why = "LoRA set changed" if _hq_lora_key != fp else "model_dir changed"emit({"event": "log", "line": f"{why}; reloading HQ pipeline."})_hq_pipe = None+ _ac()emit({"event": "log", "line": f"Loading HQ pipeline (Q8 dev model — {model_dir})..."})_hq_pipe = TwoStageHQPipeline(model_dir=model_dir, gemma_model_id=GEMMA_PATH, low_memory=LOW_MEMORY,