Problems running colmap_utils script
See original GitHub issueHi,
Thanks for the repo. I was trying to run SCNeRF with only images, but after looking at the code and issues related, it seems like I need to run colmap_utils script nontheless. But there are several errors trying to run the script:
File "/home/SCNeRF/colmap_utils/read_sparse_model.py", line 378, in main
depth_ext = os.listdir(os.path.join(args.working_dir, "depth"))[0][-4:]
and
File "/home/SCNeRF/colmap_utils/post_colmap.py", line 33, in load_colmap_data
with open(os.path.join(realdir, "train.txt"), "r") as f:
FileNotFoundError: [Errno 2] No such file or directory: '/data/TUM_desk_rgb/train.txt'
I checked the code, I think the error happens because there is no depth output from colmap directly, and no idea what is train.txt. Could you double check the provided script work for a pure rgb dataset all the way through?
And if possible, it would be very helpful if you could provide a more detailed guide on how to run with only image inputs.
Thanks in advance!
Issue Analytics
- State:
- Created a year ago
- Reactions:2
- Comments:6
Top Results From Across the Web
Python scripts and functions to work with COLMAP - GitHub
This repository provides several python scripts using the COLMAP command line interface for 3D vision tasks, primarily: reconstruct 3D model ...
Read more >What causes a Script error and how to solve them · Raygun Blog
While Script error is caused by violating the browser's same-origin policy, a Long Running Script indicates performance issues.
Read more >How to Fix “Running Scripts Is Disabled on This ... - YouTube
How to Fix “ Running Scripts Is Disabled on This System” in Powershell on Windows 10 [Tutorial]Powershell Command: Set-ExecutionPolicy ...
Read more >10 Most Common Problems in Amateur Screenplays
Script readers want to see characters come to life. They need to be layered, flawed, and changed by the events of the story....
Read more >How do scripts just suddenly stop running?
So I can tell when my objects have problems, even when I'm not nearby. That is how I get my NPCs debugged; they...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Thanks for the quick reply! I still have some questions regarding your answers, so maybe let me be more detailed about my question.
camera.bin,images.binandpoints3D.bin(these can be output as txt if you so choose to), and the dense returns folders ofconsistency_graphs,depth_maps,normal_mapsand fused ply. In yourcolmap_utilsscripts, when you are asking for a depth folder (regarding the first error I posted), are you asking for some processed depths from the COLMAP outputdepth_mapsfolder?train.txtfile. This is not related to COLMAP outputs, are we supposed to create on our own as if we are creating a train split from our raw rgb inputs?Overall, I expect your provided
colmap_utilsscripts would just work through for a raw image folder inputs, however it seems like there are still something extra we need to sort out. If this process could be straighten up, it would be very helpful because I observe a lot of interest using SCNeRF from only RGB inputs, which is probably the most common case in real life.First, I also suffered from similar problems where no depth outputs are acquired from COLMAP. In many cases, COLMAP failed to converge so that no outputs were provided. I strongly recommend you to use different descriptors, e.g., SuperPoint, D2Net, … . If your program successfully returned the output depths but caused such problem, could you elaborate more about the issue?