Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new E decomposition without svd #2920

Merged
merged 9 commits into from
Jun 10, 2024
Merged

Conversation

weitong8591
Copy link
Contributor

@weitong8591 weitong8591 commented May 30, 2024

Changes

As SVD used in E decomposition is not stable for training, we would like to intergrate another methodthat recovers the two solutions for the baseline and the orientation from a given essential matrix using elementary matrix operations. This work was done by Berthold K.P. Horn in 1990, and used in Generalized Differentiable RANSAC to build the pose erorr loss.

Fixes # (issue)

Type of change

  • 📚 Documentation Update
  • 🧪 Tests Cases
  • 🐞 Bug fix (non-breaking change which fixes an issue)
  • 🔬 New feature (non-breaking change which adds functionality)
  • 🚨 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • 📝 This change requires a documentation update

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Did you update CHANGELOG in case of a major change?

@weitong8591 weitong8591 marked this pull request as draft May 30, 2024 13:50
@weitong8591
Copy link
Contributor Author

Hi! any suggestions about what to return if there is no solution? It can't pass the tests. link

@weitong8591 weitong8591 marked this pull request as ready for review June 4, 2024 12:08
@johnnv1
Copy link
Member

johnnv1 commented Jun 4, 2024

Hi! any suggestions about what to return if there is no solution? It can't pass the tests. link

since we are randomly generating the input, we cannot determine when it'll be able to solve or not... i may say the best case here is to mark the test as xfail -- https://docs.pytest.org/en/stable/how-to/skipping.html#raises-parameter

kornia/geometry/epipolar/essential.py Show resolved Hide resolved
kornia/geometry/epipolar/essential.py Outdated Show resolved Hide resolved
kornia/geometry/epipolar/essential.py Outdated Show resolved Hide resolved
kornia/geometry/epipolar/essential.py Outdated Show resolved Hide resolved
kornia/geometry/epipolar/essential.py Show resolved Hide resolved
tests/geometry/epipolar/test_essential.py Outdated Show resolved Hide resolved
tests/geometry/epipolar/test_essential.py Show resolved Hide resolved
weitong8591 and others added 2 commits June 5, 2024 10:58
Co-authored-by: Edgar Riba <edgar.riba@gmail.com>
@weitong8591
Copy link
Contributor Author

Hi! any suggestions about what to return if there is no solution? It can't pass the tests. link

since we are randomly generating the input, we cannot determine when it'll be able to solve or not... i may say the best case here is to mark the test as xfail -- https://docs.pytest.org/en/stable/how-to/skipping.html#raises-parameter

Thanks! let me try it

@edgarriba edgarriba merged commit 9866eef into kornia:main Jun 10, 2024
27 checks passed
@weitong8591 weitong8591 deleted the decompose_e branch June 10, 2024 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants