Instructions to use cszhilu1998/LiveWorld with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use cszhilu1998/LiveWorld with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("cszhilu1998/LiveWorld", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Download LiveWorld-Code/create_infer_sample_local.sh from cszhilu1998/LiveWorld: direct link, hf CLI and curl.
- Browser
- Download file 917 Bytes
-
https://huggingface.co/cszhilu1998/LiveWorld/resolve/main/LiveWorld-Code/create_infer_sample_local.sh
- Command line
-
hf download hf://cszhilu1998/LiveWorld/LiveWorld-Code/create_infer_sample_local.sh
-
curl -L -o create_infer_sample_local.sh https://huggingface.co/cszhilu1998/LiveWorld/resolve/main/LiveWorld-Code/create_infer_sample_local.sh
917 Bytes
| set -euo pipefail | |
| cd "$(dirname "$0")" | |
| export CUDA_VISIBLE_DEVICES="${LIVEWORLD_GPU:-2}" | |
| export OMP_NUM_THREADS="${OMP_NUM_THREADS:-8}" | |
| exec /home/zhangzhilu/anaconda3/envs/th2.9/bin/python -u scripts/create_infer_sample/assemble_event_bench.py \ | |
| --images-dir "${1:-examples/inference_sample/raw}" \ | |
| --output-root "${2:-local_samples}" \ | |
| --qwen-model-path /home/zhangzhilu/anaconda3/pretrained_models/Qwen3-VL-8B-Instruct \ | |
| --sam3-model-path /home/zhangzhilu/anaconda3/pretrained_models/sam3/sam3.pt \ | |
| --stream3r-model-path /home/zhangzhilu/anaconda3/pretrained_models/STream3R \ | |
| --system-config-path configs/infer_system_config_local_14B.yaml \ | |
| --scene-estimator stream3r --device cuda:0 \ | |
| --target-height 480 --target-width 832 \ | |
| --source-frames-per-round 65 --target-frames-per-iter 65 \ | |
| --max-storyline-steps 4 --trajectory-case-types case1,case2 \ | |
| --scene-voxel-size 0.01 --resume | |