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

Unify sold2 config dataclasses #2899

Merged
merged 16 commits into from
May 16, 2024

Conversation

lappemic
Copy link
Contributor

@lappemic lappemic commented May 8, 2024

Changes

This PR refactors the newly introduced dataclasses in PR #2880 to a single file in kornia/utils/structures.py.

Fixes #2093 (according to comment)

ASAP this PR is closed i will refactor kornia/feature/sold2 default_cfg to structures.py as well.

kornia/utils/structures.py Outdated Show resolved Hide resolved
@lappemic
Copy link
Contributor Author

lappemic commented May 9, 2024

@johnnv1 applied the changes

@johnnv1
Copy link
Member

johnnv1 commented May 9, 2024

The doctest for kornia/feature/sold2/sold2_detector.py::kornia.feature.sold2.sold2_detector.SOLD2_detector is failling, could you check it? @lappemic

@lappemic
Copy link
Contributor Author

@johnnv1 the docs are ok. I don't understand the other errors (e.g. Tests on CPU (PR) / tests-cpu (MacOS-latest, float32) ...) and also was not able to mitigate them. Do you know what the issue is there?

@johnnv1
Copy link
Member

johnnv1 commented May 12, 2024

@johnnv1 the docs are ok. I don't understand the other errors (e.g. Tests on CPU (PR) / tests-cpu (MacOS-latest, float32) ...) and also was not able to mitigate them. Do you know what the issue is there?

tks, these falling cases is some issue with the CI/torch

@lappemic
Copy link
Contributor Author

How can i mitigate them? Or how can i finish this PR then?

@johnnv1
Copy link
Member

johnnv1 commented May 13, 2024

How can i mitigate them? Or how can i finish this PR then?
We ping the guys -- @edgarriba @ducha-aiki could you force this merge? The red lights are unrelated within the PR

@johnnv1
Copy link
Member

johnnv1 commented May 15, 2024

@lappemic could you rebase this one? i removed the CI with the issue

peicuiping and others added 5 commits May 16, 2024 09:03
* chore: remove repetitive words

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* fix (CI): remove old torch on macos

* chore: ensure last pytorch
* [pre-commit.ci] pre-commit suggestions

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.4.1 → v0.4.2](astral-sh/ruff-pre-commit@v0.4.1...v0.4.2)

* fix up031

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: João Gustavo A. Amorim <joaogustavoamorim@gmail.com>
* initial commit

* add docs

* add tests

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* update docs

* correct typing

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* update tests and docs

* change randn to rand

* Modify docs indentation

* correct docs and remove unused vars

* add return_mask

* Remove shape in doc

* fix docs format

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: edgar <edgar.riba@gmail.com>
@edgarriba edgarriba enabled auto-merge (squash) May 16, 2024 07:19
@edgarriba edgarriba disabled auto-merge May 16, 2024 07:51
@edgarriba edgarriba merged commit 3ce96a3 into kornia:main May 16, 2024
24 of 27 checks passed
@lappemic lappemic deleted the 2093-unify-sold2-config-dataclasses branch May 16, 2024 07:52
cjpurackal pushed a commit to cjpurackal/kornia that referenced this pull request May 18, 2024
* refactor: store sold2_detector config dataclasses in utils/structures.py

* fix: update path to DetectorCfg in Docstring

* Move structures.py and restate import path

* Update SOLD2_detector docstring

* Add LineMatcherCfg dataclass to structures.py

* Update LineMatcherCfg to include line_score

* refactor: cfg of SOLD2 and WunschLineMatcher to be dataclasses

* my bad...

* fix: update WunschLineMatcher initialization

* fix: update SOLD2 initialiation

* fix: rollback due to inconsistencies with sold2 config to dataclass

* chore: remove repetitive words (kornia#2902)

* chore: remove repetitive words

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

* CI: Drop macos-latest runner for torch 1.9.1 (kornia#2905)

* fix (CI): remove old torch on macos

* chore: ensure last pytorch

* [pre-commit.ci] pre-commit suggestions (kornia#2894)

* [pre-commit.ci] pre-commit suggestions

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.4.1 → v0.4.2](astral-sh/ruff-pre-commit@v0.4.1...v0.4.2)

* fix up031

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: João Gustavo A. Amorim <joaogustavoamorim@gmail.com>

* feat: in_range filtering (kornia#2895)

* initial commit

* add docs

* add tests

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* update docs

* correct typing

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* update tests and docs

* change randn to rand

* Modify docs indentation

* correct docs and remove unused vars

* add return_mask

* Remove shape in doc

* fix docs format

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: edgar <edgar.riba@gmail.com>

---------

Co-authored-by: peicuiping <168072318+peicuiping@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: João Gustavo A. Amorim <joaogustavoamorim@gmail.com>
Co-authored-by: Vicent Gilabert <44602177+vgilabert94@users.noreply.github.com>
Co-authored-by: edgar <edgar.riba@gmail.com>
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.

Update configs to use dataclasses
5 participants