-
Notifications
You must be signed in to change notification settings - Fork 705
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
Ignore pixel metrics in classification task #516
Conversation
anomalib/utils/callbacks/__init__.py
Outdated
@@ -74,6 +74,7 @@ def get_callbacks(config: Union[ListConfig, DictConfig]) -> List[Callback]: | |||
config.metrics.threshold.pixel_default if "pixel_default" in config.metrics.threshold.keys() else None | |||
) | |||
metrics_callback = MetricsConfigurationCallback( | |||
config.dataset.task, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess the same initialization is to be done when configuring MetricsConfigurationCallback
in the new CLI
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, thanks
Description
This PR makes sure that validation/testing does not fail when pixel metrics are requested in a classification task. Instead, the metrics configuration callback will ignore the pixel metrics and show a warning to the user.
Fixes Patchcore validation and test error! #513
Changes
Checklist