mapillary / mapillary/OpenSfM

[bug] navigation_graph

Open
#652 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.