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.1.1.tar.gz (11.4 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.1.1-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for nvs2colmap-0.1.1.tar.gz
Algorithm Hash digest
SHA256 fd19181a59af41c3c79331736eef2d252f3a35768b7766b5cbb973d819aea278
MD5 2b95c199ca40b06391b0f8e0cdd7461c
BLAKE2b-256 980e55f762733806e31d4ef760ff3a00a6532b64f7244b37db5f4851e06f068c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nvs2colmap-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 13.0 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.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0d307b4fbb198126ce2ebdd95f1acba2470c2f8373769c81f6d03e604887abd6
MD5 f7af6a677617f9e8db04e2b38790dee0
BLAKE2b-256 7f3b8187bfffb5f12cbb7a0b8d59799781073cb6430e4a4ed739c1aad3c53a37

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