Views
No views yet
1# Clone the repo
2git clone https://huggingface.co/cahlen/lingbot-world-base-cam-nf4
3cd lingbot-world-base-cam-nf4
4
5# Install dependencies
6pip install -r requirements.txt
7
8# Generate a video
9python generate_prequant.py \
10 --image your_image.jpg \
11 --prompt "A cinematic video of the scene" \
12 --frame_num 81 \
13 --output output.mp4| File | Size | Description |
|---|---|---|
high_noise_model_bnb_nf4/model.safetensors | ~9.6GB | NF4 quantized diffusion model (high noise) |
low_noise_model_bnb_nf4/model.safetensors | ~9.6GB | NF4 quantized diffusion model (low noise) |
models_t5_umt5-xxl-enc-bf16.pth | ~10.6GB | T5-XXL text encoder |
Wan2.1_VAE.pth | ~485MB | VAE encoder/decoder |
1python generate_prequant.py \
2 --image input.jpg \
3 --prompt "Your prompt here" \
4 --frame_num 81 \
5 --size "480*832" \
6 --output output.mp4| Parameter | Default | Description |
|---|---|---|
--image | required | Input image path |
--prompt | required | Text prompt describing the video |
--frame_num | 81 | Number of frames (81 = ~5 seconds at 16fps) |
--size | "480*832" | Output resolution (height*width) |
--sampling_steps | 40 | Diffusion sampling steps |
--guide_scale | 5.0 | Classifier-free guidance scale |
--seed | -1 | Random seed (-1 for random) |
--output | "output.mp4" | Output video path |
1python generate_prequant.py \
2 --image input.jpg \
3 --prompt "Your prompt" \
4 --action_path /path/to/camera_poses/ \
5 --frame_num 81poses.npy: Shape [num_frames, 4, 4] - camera transformation matricesintrinsics.npy: Shape [num_frames, 4] - [fx, fy, cx, cy]1{
2 "format": "bnb_nf4",
3 "double_quant": true,
4 "compute_dtype": "bfloat16",
5 "blocksize": 64
6}1@misc{lingbot-world-nf4,
2 title={LingBot-World NF4 Quantized},
3 year={2025},
4 url={https://huggingface.co/cahlen/lingbot-world-base-cam-nf4}
5}