bycloudai / instant-ngp-Windows

Instant neural graphics primitives: lightning fast NeRF and more
https://nvlabs.github.io/instant-ngp
Other
501 stars 76 forks source link

Error-[option_manager.cc:811] Check failed: ExistsDir(*image_path) #5

Open y0himba opened 2 years ago

y0himba commented 2 years ago

I made it to "Get transform.json" successfully. However when I use the command: python scripts/colmap2nerf.py --colmap_matcher exhaustive --run_colmap --aabb_scale 16 --images /image/vibe I get the error below.

I am using an admin terminal, and have tried the conda prompt as well. I am in the data directory of the repo C:\stable-diffusion\instant-ngp\data. My goal is to create a directory named 'vibe' where I am going to put my photos.

instant-ngp-
                    |_data-
                              |_image-
                                           |_vibe

I'm so close after days of resolving an issue with Git and Windows ASLR! What am I doing wrong, and what info can I give to help? I am on Windows 10x64.

C:\stable-diffusion\instant-ngp>python scripts/colmap2nerf.py --colmap_matcher exhaustive --run_colmap --aabb_scale 16 --images /image/vibe
running colmap with:
        db=colmap.db
        images="/image/vibe"
        sparse=colmap_sparse
        text=colmap_text
warning! folders 'colmap_sparse' and 'colmap_text' will be deleted/replaced. continue? (Y/n)y
==== running: colmap feature_extractor --ImageReader.camera_model OPENCV --ImageReader.camera_params "" --SiftExtraction.estimate_affine_shape=true --SiftExtraction.domain_size_pooling=true --ImageReader.single_camera 1 --database_path colmap.db --image_path "/image/vibe"
[option_manager.cc:811] Check failed: ExistsDir(*image_path)
ERROR: Invalid options provided.
FATAL: command failed
Erosion139 commented 1 year ago

Stuck on this step as well, did you ever figure it out?

KultidGames commented 1 year ago

In order to solve this, you have to put the entire directory after --images, so instead of:

--images /image/vibe

It should be:

C:\stable-diffusion\instant-ngp\data_image_vibe

Ensure it's the full dir, including user and everything.

Hope this helps!

SinaDavari commented 1 year ago

@KultidGames Thanks! It works. How I was able to run it: C:...\scripts\colmap2nerf.py --colmap_matcher exhaustive --run_colmap --images C:...\images --aabb_scale 16 --overwrite