-
-
Notifications
You must be signed in to change notification settings - Fork 939
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
Unify sold2 config dataclasses #2899
Conversation
@johnnv1 applied the changes |
The doctest for kornia/feature/sold2/sold2_detector.py::kornia.feature.sold2.sold2_detector.SOLD2_detector is failling, could you check it? @lappemic |
@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 |
How can i mitigate them? Or how can i finish this PR then? |
|
@lappemic could you rebase this one? i removed the CI with the issue |
* 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>
* 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>
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 tostructures.py
as well.