This model was converted to MLX format from
Lightricks/LTX-2 using mlx-video version
0.0.1.
Refer to the
original model card for more details on the model.
1python -m mlx_video.generate_dev \
2 --prompt "Two dogs of the poodle breed wearing sunglasses, close up, cinematic, sunset" \
3 --num-frames 100 \
4 --width 768 \
5 --model-repo mlx-community/LTX-2-dev-bf16
1# First frame conditioning
2python -m mlx_video.generate_dev \
3 --prompt "A cat walking across a sunny garden" \
4 --image cat.jpg \
5 --image-strength 1.0 \
6 --image-frame-idx 0 \
7 --model-repo mlx-community/LTX-2-dev-bf16
1# Middle frame conditioning
2python -m mlx_video.generate_dev \
3 --prompt "A person turning around" \
4 --image person.jpg \
5 --image-frame-idx 16 \
6 --num-frames 33 \
7 --model-repo mlx-community/LTX-2-dev-bf16
Generates synchronized video and audio.
1python -m mlx_video.generate_dev \
2 --prompt "Ocean waves crashing on rocks, seagulls calling" \
3 --height 512 \
4 --width 512 \
5 --num-frames 65 \
6 --output-path output_av.mp4 \
7 --output-audio output.wav \
8 --model-repo mlx-community/LTX-2-dev-bf16
1from mlx_video.generate_dev import generate_video_dev
2
3# Generate a video
4generate_video_dev(
5 model_repo="mlx-community/LTX-2-dev-bf16",
6 prompt="A beautiful sunset over the ocean",
7 height=512,
8 width=768,
9 num_frames=65,
10 seed=42,
11 fps=24,
12 output_path="output.mp4",
13)