Official code release for LVSPM: Long Sequence View Synthesis and Pose Estimation Model.
Install the environment:
conda create -n lvspm python=3.10 -y
conda activate lvspm
python -m pip install -r requirements.txt
conda install -c conda-forge ffmpeg -yDownload the checkpoints from Hugging Face
and place them in checkpoints/.
| Checkpoint | Input resolution (W×H) | Weights |
|---|---|---|
LVSPM_512x288.ckpt |
512×288 | Download |
LVSPM_448x256.ckpt |
448×256 | Download |
Place RGB images of one scene in a folder, then predict cameras and render a novel path. JPEG, PNG, BMP, and WebP are supported.
Run the included 64-image library demo, or use your own image folder:
python -m src.infer_folder \
--checkpoint checkpoints/LVSPM_512x288.ckpt \
--image-dir assets/demo \
--num-input-views 64 \
--output-dir output/demoOutputs include a novel-view video, camera poses, and a GLB camera visualization. The command also reports prefill latency and cached-render FPS.
For more options, run python -m src.infer_folder --help.
Install the dataset download tool and sign in:
python -m pip install -U huggingface_hub
hf auth loginDownload DL3DV-Evaluation, prepare the data, and run pose evaluation:
hf download DL3DV/DL3DV-Evaluation --repo-type dataset \
--include 'images_tar/*.tar' --local-dir data/raw/DL3DV-Evaluation
python scripts/prepare_dl3dv.py --preset dl3dv_pose \
--input-root data/raw/DL3DV-Evaluation --output-root data/DL3DV-Evaluation
CUDA_VISIBLE_DEVICES=0 python -m src.main mode=test \
+evaluation=lvspm_equal_temporal evaluation.preset=dl3dv_pose evaluation.views=16The converter reads the downloaded scene archives directly and creates scene
ZIPs and test.json.
Download DL3DV-Benchmark, prepare the data, and run novel-view synthesis evaluation:
hf download DL3DV/DL3DV-Benchmark --repo-type dataset \
--include '*/nerfstudio/transforms.json' '*/nerfstudio/images_4/*' \
--local-dir data/raw/DL3DV-140
python scripts/prepare_dl3dv.py --preset dl3dv_nvs \
--input-root data/raw/DL3DV-140 --output-root data/DL3DV-ALL-960P
CUDA_VISIBLE_DEVICES=0 python -m src.main mode=test \
+evaluation=lvspm_equal_temporal evaluation.preset=dl3dv_nvs evaluation.views=16Use the benchmark's images_4 images. The converter packages all 140 scenes
into ZIPs and writes test.json.
The context and target indices are in assets/evaluation/dl3dv_pose/<views>.json
and assets/evaluation/dl3dv_nvs/<views>.json.
Set evaluation.views to a supported view count; checkpoints and input
resolutions are selected automatically.
| Preset | Context views | Input resolution (W×H) |
|---|---|---|
dl3dv_pose |
16, 32, 64, 128, 256 | 512×288 |
dl3dv_nvs |
16, 64, 128, 256 | 448×256 |
For comparison with baselines, pose is evaluated at 512×288 and NVS at 448×256.
For custom data, checkpoint, and output locations:
CUDA_VISIBLE_DEVICES=0 python -m src.main mode=test \
+evaluation=lvspm_equal_temporal evaluation.preset=dl3dv_pose evaluation.views=16 \
evaluation.dataset_root=/path/to/DL3DV-Evaluation \
checkpointing.load=/path/to/LVSPM_512x288.ckpt \
test.output_path=output/dl3dv_pose_view16Results are saved in <test.output_path>/lvspm/, with per-scene
metrics_pose.json or metrics.json and aggregate scores_protocol_avg.json.
Pose evaluation reports AUC@3, AUC@5, and AUC@30; NVS reports PSNR, SSIM, and
LPIPS. Scores are averaged across scenes.
To evaluate one setting on eight GPUs:
NUM_NODE=1 CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 python -m src.main mode=test \
+evaluation=lvspm_equal_temporal evaluation.preset=dl3dv_pose evaluation.views=16 \
test.output_path=output/dl3dv_pose_view16To schedule all supported evaluation settings across eight GPUs:
python -m src.misc.run_evaluation_matrix \
--gpus 0,1,2,3,4,5,6,7 \
--output-root output/equitemporalBrewing..
Thanks to these great repositories: MVSplat, LVSM, LaCT, and many other inspiring open-source projects.
@inproceedings{chen2026lvspm,
title={{LVSPM}: Long Sequence View Synthesis and Pose Estimation Model},
author={Chen, Xi and Zhang, Yachi and Chen, Linghao and Liu, Minghua and Su, Hao and Xu, Zexiang and Zhang, Xiaoshuai},
booktitle={European Conference on Computer Vision (ECCV)},
year={2026}
}