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

Fix names for ignored scope [HOT-FIX, 2.2.0] #3924

Merged
merged 1 commit into from
Sep 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/otx/algo/segmentation/litehrnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
@property
def ignore_scope(self) -> dict[str, Any]:
"""Get the ignored scope for LiteHRNet."""
if self.model_version == "large":
if self.model_version == "lite_hrnet_x":

Check warning on line 90 in src/otx/algo/segmentation/litehrnet.py

View check run for this annotation

Codecov / codecov/patch

src/otx/algo/segmentation/litehrnet.py#L90

Added line #L90 was not covered by tests
return {
"ignored_scope": {
"patterns": ["__module.model.decode_head.aggregator/*"],
Expand Down Expand Up @@ -175,7 +175,7 @@
"preset": "performance",
}

if self.model_version == "medium":
if self.model_version == "lite_hrnet_18":

Check warning on line 178 in src/otx/algo/segmentation/litehrnet.py

View check run for this annotation

Codecov / codecov/patch

src/otx/algo/segmentation/litehrnet.py#L178

Added line #L178 was not covered by tests
return {
"ignored_scope": {
"patterns": ["__module.model.backbone/*"],
Expand Down Expand Up @@ -263,7 +263,7 @@
"preset": "mixed",
}

if self.model_version == "small":
if self.model_version == "lite_hrnet_s":

Check warning on line 266 in src/otx/algo/segmentation/litehrnet.py

View check run for this annotation

Codecov / codecov/patch

src/otx/algo/segmentation/litehrnet.py#L266

Added line #L266 was not covered by tests
return {
"ignored_scope": {
"names": [
Expand Down
Loading