Skip to main content

NVS2COLMAP

Utilities for converting novel view synthesis datasets to COLMAP format.

These scenes are prepared for InstantSplat. InstantSplat initializes one frame at a time and does not undistort a whole sequence, so this repository undistorts every frame. The default commands write known-pose sparse/0 text models and do not call COLMAP. --use-colmap runs feature extraction, matching, triangulation, mapping, image_undistorter, and mask_undistorter on every frame. Undistorted images go to images/, and undistorted masks go to image_masks/.

Supported Formats

  • Neural 3D Video Dataset: scenes with poses_bounds.npy and one mp4 file per camera. See nvs2colmap/n3dv/README.md.
  • Dynamic 3D Gaussians: scenes with train_meta.json, test_meta.json, images in ims/, and masks in seg/. See nvs2colmap/dynamic3dgs/README.md.
  • Blender: a .blend file rendered into that Neural 3D Video layout, with blender_frames.json recording the Blender timeline frame of each video frame. See nvs2colmap/blender/README.md.
  • ST-NeRF: scenes with pose/K.txt, pose/RT_c2w.txt, and one frame*/images folder per frame. The released boxing archive has no pose/. See nvs2colmap/stnerf/README.md.
  • Siggraph Asia 2026 VVC: scenes with images/<view>/<frame>, train_intri.yml, and train_extri.yml. See nvs2colmap/SiggraphAsia2026VVC/README.md.

Supported Datasets

Quick Start

Install the Python runtime dependencies:

pip install numpy pillow plyfile torch

Download FFmpeg 7.0.2-static and place ffmpeg and ffprobe in data/:

mkdir -p data
wget -qO- https://johnvansickle.com/ffmpeg/releases/ffmpeg-7.0.2-amd64-static.tar.xz | tar -xJ -C data --strip-components=1 ffmpeg-7.0.2-amd64-static/ffmpeg ffmpeg-7.0.2-amd64-static/ffprobe

Install COLMAP from conda-forge:

conda install -c conda-forge colmap

The colmap executable is ${CONDA_EXE%/bin/conda}/bin/colmap. It loads shared libraries from the conda lib directory next to that binary, so pass this path to --colmap-executable.

--use-colmap hardcodes the COLMAP 3.13 option names --FeatureExtraction.use_gpu and --FeatureMatching.use_gpu. COLMAP 3.12 and earlier only accept --SiftExtraction.use_gpu and --SiftMatching.use_gpu, and exit with unrecognised option '--SiftExtraction.use_gpu'. Install COLMAP 3.13 or newer.

For Neural 3D Video scenes, pass data/ffmpeg and data/ffprobe, or put ffmpeg and ffprobe on PATH. To run the COLMAP reconstruction that InstantSplat continues from, pass --colmap-executable "${CONDA_EXE%/bin/conda}/bin/colmap".

Extract a Neural 3D Video scene and write per-frame COLMAP text models for InstantSplat:

python -m nvs2colmap.n3dv \
  --path data/coffee_martini \
  --ffmpeg ffmpeg \
  --ffprobe ffprobe \
  --n-frames 300

Start from source frame 10 and keep output frame numbering aligned with it:

python -m nvs2colmap.n3dv \
  --path data/coffee_martini \
  --ffmpeg ffmpeg \
  --ffprobe ffprobe \
  --start-number 10 \
  --n-frames 300

Run COLMAP reconstruction and undistortion for each frame, for InstantSplat:

python -m nvs2colmap.n3dv \
  --path data/Robo360/xarm6_gold_rope_in_basket_2 \
  --ffmpeg ffmpeg \
  --ffprobe ffprobe \
  --video-extension MP4 \
  --n-frames 1 \
  --use-colmap \
  --colmap-executable "${CONDA_EXE%/bin/conda}/bin/colmap" \
  --colmap-use-gpu 1

Link a Dynamic 3D Gaussians scene, including its masks, and write per-frame COLMAP text models for InstantSplat:

python -m nvs2colmap.dynamic3dgs \
  --path data/basketball \
  --n-frames 150

Write per-frame COLMAP text models for an ST-NeRF scene. The scene must contain pose/K.txt and pose/RT_c2w.txt:

python -m nvs2colmap.stnerf \
  --path data/taekwondo \
  --n-frames 101

Link a Siggraph Asia 2026 VVC scene and write per-frame COLMAP text models for InstantSplat. The default starts at the first frame file and writes frame1, including a selfcap scene whose first file is 000900.jpg:

python -m nvs2colmap.SiggraphAsia2026VVC \
  --path data/SiggraphAsia2026VVC/siga/compression/test/004_1_seq1
python -m nvs2colmap.SiggraphAsia2026VVC \
  --path data/SiggraphAsia2026VVC/selfcap/sparse/test/0512_bike

Render a .blend file into camera videos next to an existing poses_bounds.npy. blender must be on PATH, or pass the executable with --blender:

python -m nvs2colmap.blender \
  --path data/robot \
  --blend robot.blend \
  --frame_step 3

For Neural 3D Video scenes, decoded frames are written to frame*/images by default, and the command also writes frame*/sparse/0 text models. With --use-colmap, decoded frames are written to frame*/input, and each frame gets distorted/sparse/0 plus undistorted images/, sparse/, and stereo/ for InstantSplat. When --start-number N is provided, decoding starts from source video frame N. Extracted frames are written starting at frame1.

For Dynamic 3D Gaussians scenes, images from both train_meta.json and test_meta.json are hardlinked into frame*/images, and included masks are hardlinked into frame*/image_masks (cam01.jpg pairs with cam01.jpg.png). --no-train-camera and --no-test-camera drop one split. The same --use-colmap switch writes images to frame*/input and masks to frame*/input_mask, then undistorts them to images/ and image_masks/ for InstantSplat. That switch does not write init_pt_cld.npz into sparse/0/points3D.ply; the reconstructed points stay in distorted/sparse/0 and the undistorted sparse/. --start-number uses the same 1-based output numbering; source file 000000.jpg is frame 1.

For Siggraph Asia 2026 VVC scenes, images from train_intri.yml / train_extri.yml and, when present, test_intri.yml / test_extri.yml are placed in frame*/images. Included masks go in frame*/image_masks (0002.jpg pairs with 0002.jpg.png). A zero D_<view> is hardlinked. A nonzero D_<view> hardlinks the original into frame*/input. COLMAP's image_undistorter writes frame*/images and a PINHOLE model in sparse/0. A shared pcds/000000.ply is hardlinked to sparse/0/points3D.ply in every extracted frame. --use-colmap writes images to frame*/input and masks to frame*/input_mask, then runs COLMAP undistortion into images/ and image_masks/ for InstantSplat. The default starts at the first frame file and writes frame1. A scene whose first file is 000900.jpg still begins at frame1.

For Blender scenes, rendering writes one video per camera beside poses_bounds.npy, plus blender_frames.json in that same directory. The file is a JSON list of Blender timeline frame numbers in render order. Video frame i (1-based) is Blender frame blender_frames[i - 1]. --frame_start defaults to 1. --frame_end and --frame_step default to the .blend timeline. With --frame_step 3, the file begins [1, 4, 7, ...]. Decoding the videos with python -m nvs2colmap.n3dv numbers frame* folders by video frame, so frameK is blender_frames[K - 1].

For ST-NeRF scenes, the scene directory holds one zip file. The default command extracts images to frame*/images and writes frame*/sparse/0 text models from pose/K.txt and pose/RT_c2w.txt. --use-colmap extracts images to frame*/input, then undistorts them to images/ for InstantSplat. A scene without pose/ raises an error. --start-number uses the same 1-based numbering; source directory frame1 is frame 1.

Metadata

Release files for nvs2colmap 0.8.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nvs2colmap 0.8.11
File Size Uploaded Provenance Actions
nvs2colmap-0.8.11.tar.gz 50.6 kB With provenance Details for nvs2colmap-0.8.11.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nvs2colmap 0.8.11
File Interpreter ABI Platform Actions
nvs2colmap-0.8.11-py3-none-any.whl Python 3 none any Details for nvs2colmap-0.8.11-py3-none-any.whl

Total release size: 112.9 kB

Release files / nvs2colmap-0.8.11.tar.gz

Download URL nvs2colmap-0.8.11.tar.gz
Size 50.6 kB
Tags Source
SHA-256 checksum
How to use checksums
524099558a93487f487df635d9ad710335aaea3a3e4b16ac74d45941f9d0e7d9
BLAKE2b-256 checksum
How to use checksums
6df20a935e3567e57fa3af20806e41dc9d0ffdad4c5f7bc64e2901e190bd42ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.

Transparency log

Release files / nvs2colmap-0.8.11-py3-none-any.whl

Download URL nvs2colmap-0.8.11-py3-none-any.whl
Size 62.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ecb51dd9c90440ee2d86ba42d159f3bf69d4ff3ae732880aa335f2fa7a12268e
BLAKE2b-256 checksum
How to use checksums
19f86258c504bacf481e83b4b800ef03c724c91c43366699fcea405d1d6c1662
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.

Transparency log

Security for nvs2colmap 0.8.11

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for nvs2colmap-0.8.11.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.8.11 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page