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.1.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.1-py3-none-any.whl (13.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nvs2colmap-0.2.1.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.1.tar.gz
Algorithm Hash digest
SHA256 57060f8756a00f00b8c2e88a4c59cf7c9f2aca48e27e872ab6b277bad4cdfdeb
MD5 a6d8db8fdb3cc4cd768dd2efb89f0c44
BLAKE2b-256 6af2e9abb1e3751291853cb87df3354e674b2a0809506b50e64f3eeae97ef338

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nvs2colmap-0.2.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 44efb5b87628b1bd1c902bd9313a14c46afaf512c85c69fa15c91e028882226b
MD5 61fc4d6219da5b3d8f30baea5773a87b
BLAKE2b-256 ef64ae051a73a4853a422af89f6e5c56127bcc66bdef713e33e8e09cf36186d1

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