[bug] navigation_graph
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 3.8k
- Forks
- 899
- PR merge metrics
- No merged PRs in 30d
Description
When I run navigation_graph on a dataset I get
/home/opensfm/OpenSfM/bin/navigation_graph /home/opensfm/data/berlin/
Traceback (most recent call last):
File "/home/opensfm/OpenSfM/bin/navigation_graph", line 299, in
rec_graph = create_optical_center_graph(recs, data.config)
File "/home/opensfm/OpenSfM/bin/navigation_graph", line 147, in create_optical_center_graph
optical_centers = np.vstack(optical_centers)
File "<array_function internals>", line 5, in vstack
File "/usr/lib/python3/dist-packages/numpy/core/shape_base.py", line 282, in vstack
return _nx.concatenate(arrs, 0)
File "<array_function internals>", line 5, in concatenate
ValueError: need at least one array to concatenate
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the command shown for bin/navigation_graph with the Berlin dataset, then inspect create_optical_center_graph at line 147 and the caller at line 299. Trace why optical_centers is empty before np.vstack runs. Done means navigation_graph has defined behavior for this input instead of raising the reported ValueError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- numpy, python
- Domain
- computer-vision
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100