Skip to main content

Utilities for converting novel view synthesis datasets to COLMAP format.

Project description

NVS2COLMAP

Utilities for converting novel view synthesis datasets to COLMAP format.

Supported Formats

  • Neural 3D Video Dataset: scenes with poses_bounds.npy and one mp4 file per camera. See nvs2colmap/n3dv/README.md.

Supported Datasets

Quick Start

Install the Python runtime dependencies:

pip install numpy torch

For Neural 3D Video scenes, the command also needs ffmpeg and ffprobe on PATH, or explicit paths via --ffmpeg and --ffprobe. If you want to run the full COLMAP pipeline, also provide a COLMAP executable via --colmap-executable.

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

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 the full COLMAP pipeline for each frame:

python -m nvs2colmap.n3dv \
  --path data/Robo360/xarm6_gold_rope_in_basket_2 \
  --ffmpeg D:/MyPrograms/ffmpeg.exe \
  --ffprobe D:/MyPrograms/ffprobe.exe \
  --video-extension MP4 \
  --n-frames 1 \
  --use-colmap \
  --colmap-executable data/colmap/COLMAP.bat \
  --colmap-use-gpu 1

By default, decoded frames are written to frame*/images, and the command also writes frame*/sparse/0 text models. With --use-colmap, decoded frames are written to frame*/input, and each frame additionally gets the standard COLMAP outputs such as distorted/, images/, sparse/, and stereo/. When --start-number N is provided, decoding starts from source video frame N, and the generated folders/images are also numbered from N.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nvs2colmap-0.2.0.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nvs2colmap-0.2.0-py3-none-any.whl (13.4 kB view details)

Uploaded Python 3

File details

Details for the file nvs2colmap-0.2.0.tar.gz.

File metadata

  • Download URL: nvs2colmap-0.2.0.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for nvs2colmap-0.2.0.tar.gz
Algorithm Hash digest
SHA256 c0df3f89f9af48a7428a8e5418b724e22802c0e03c082aaadc88bbb45356367c
MD5 420869750f468a98e7d54f41678afa9a
BLAKE2b-256 af3b6d9702805c09e8792a0194f55891ab775c1819bc6b7501328c1fe9498ef5

See more details on using hashes here.

File details

Details for the file nvs2colmap-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: nvs2colmap-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 13.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for nvs2colmap-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a6092c58aa6c3c5c1e28e639acd054a5c7c452d0b49e7cfd9db6757797c81999
MD5 fe4b4ca87d3cebc92dfde164717227e7
BLAKE2b-256 d52a37920914caa0f500f42a50e9d05bacdca8eb944b4b9a614a44817f65f980

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page