mapillary / mapillary/OpenSfM

OpenSFM slow for large linear datasets

Open
#130 18 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

sfm-reconstruction
Dominant language
Python
Stars
3.8k
Forks
899
PR merge metrics
No merged PRs in 30d

Description

OpenSFM starts to take a long time for each additional image for me for longer sequences. Using a sequence of 700 images, the bundle stage starts to take closer to 20 seconds per image, rather than more like 2 seconds per image at the start.

The data I'm using is video, so I know that my images are all in order and only e.g. need to be matched with nearby frames. I don't have exif data, so something like matching_time_neighbors isn't applicable, but I've implemented my own similar config setting that should only take the 3 frames before and after. This indeed speeds up the matching substantially (since it only looks for matching pairs in nearby frames), but the bundle time per frame still grows.

Should it still grow? I presume the bundle is adjusting all of the points in our construction so far, but this seems like possible overkill, since my new points should only be added on the end.

Advice on config settings/directions to look at code to change for linear sequences would be appreciated!

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

Start by tracing the bundle stage and the nearby-frame matching configuration described in the issue. Compare how bundle time scales as a sequence grows, then determine what a linear-sequence configuration or approach would need to change; done should include validated scaling on a large, ordered image sequence.

Written by the indexing model from the issue text.

Assessment

Tech stack
opencv, python
Domain
computer-vision
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.