google-research / multinerf

A Code Release for Mip-NeRF 360, Ref-NeRF, and RawNeRF
Apache License 2.0
3.56k stars 338 forks source link

Datasets related problem #152

Open chrizz777 opened 4 months ago

chrizz777 commented 4 months ago

What you've done is amazing. Thank you so much for sharing.

I encountered the following problem when running the script train_raw.sh. Where did this transforms.json file come from? Was there a problem with my colmap operation?

image

sudarshan-iyengar commented 4 months ago

I faced a similar issue as you with no transforms.json file. I had to do a sort of strange workaround, so I'd really appreciate it if someone could give a more straightforward way of doing it, but this is what I did: 1- downloaded the colmap2nerf.py file from instant-ngp 2- saved my colmap outputs (cameras.txt, points3D.txt, and images.txt) to a folder called colmap_text 3- ran the colmap2nerf.py as follows: python colmap2nerf.py --colmap_matcher exhaustive --text path/to/colmap_text --images path/to/images --aabb_scale 16 --overwrite 4-moved the transforms.json file that was produced by step 3 into the directory on the same level as your images directory 5- run the training script Alternatively: Please check to make sure that sparse/0 folder contains the necessary .bin files and isn't empty. If it is empty, there was probably an error with colmap. Hope this helps!!

c1earl0ve commented 4 months ago

I faced a similar issue as you with no transforms.json file. I had to do a sort of strange workaround, so I'd really appreciate it if someone could give a more straightforward way of doing it, but this is what I did: 1- downloaded the colmap2nerf.py file from instant-ngp 2- saved my colmap outputs (cameras.txt, points3D.txt, and images.txt) to a folder called colmap_text 3- ran the colmap2nerf.py as follows: python colmap2nerf.py --colmap_matcher exhaustive --text path/to/colmap_text --images path/to/images --aabb_scale 16 --overwrite 4-moved the transforms.json file that was produced by step 3 into the directory on the same level as your images directory 5- run the training script

Hope this helps!! Hello, I have encountered the same problem, but my COLMAP outputs are in ”bin“ format instead of “txt” format. Is there a solution? Thank you very much.

sudarshan-iyengar commented 4 months ago

I would recommend you to check out the colmap documentation, where you can see how to export your model as txt: colmap output format