question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problems running colmap_utils script

See original GitHub issue

Hi,

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:closed
  • Created a year ago
  • Reactions:2
  • Comments:6

github_iconTop GitHub Comments

2reactions
kudo1026commented, Apr 28, 2022

Thanks for the quick reply! I still have some questions regarding your answers, so maybe let me be more detailed about my question.

  1. In terms of COLMAP outputs, in my experience, the sparse mode returns camera.bin, images.bin and points3D.bin (these can be output as txt if you so choose to), and the dense returns folders of consistency_graphs, depth_maps, normal_maps and fused ply. In your colmap_utils scripts, when you are asking for a depth folder (regarding the first error I posted), are you asking for some processed depths from the COLMAP output depth_maps folder?
  2. Regarding my second error, which misses a train.txt file. 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_utils scripts 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.

1reaction
jeongyw12382commented, Apr 27, 2022

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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found