Skip to main content

npm basic commands


  1.  Start with your own set of images, make sure they are not blurry. Choose approximately 30 - 150 images.
  2. put your images in C:\Users\student\python\instant-ngp\data\nerf\YOUR_PROJECT_FOLDER\images
  3. open anaconda shell
  4.  activate the instant-ngp environment
    conda activate instant-ngp
  5. navigate with cd to your project folder
    cd python/instant-ngp/data/nerf/YOUR_PROJECT_FOLDER
  6. execute the "colmap2nerf.py" script from your project folder
    python "C:\Users\student\python\instant-ngp\scripts\colmap2nerf.py" --colmap_matcher exhaustive --run_colmap --aabb_scale 16
  7. wait until the matching has finished - a few more files in your project folder have been created:

📁YOUR PROJECT FOLDER
     📁colmap_sparse
     📁colmap_text
     📁images
     📄base.msgpack
     📄base_cam.json
     📄colmap.db
     📄transforms.json

8. open Developer Command Prompt for VS 2019  (🪟KEY and type "Developer Command Prompt")
9. navigate with "cd" to the instant-ngp folder


10.

.\build\testbed --scene data\nerf\YOUR_PROJECT_FOLDER





rendering

python scripts/render.py --scene data/nerf/sj --n_seconds 5 --fps 60 --render_name test --width 1920 --height 1080

(run from developer command prompt)

.\build\testbed --scene data\nerf\kalmar