-
Notifications
You must be signed in to change notification settings - Fork 704
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
[Bug]: AttributeError: 'NoneType' object has no attribute 'flatten' #2510
Comments
If you don't provide a mask dir |
@alexriedel1
|
Ah I see! The pixel threshold is calculated based on ground truth masks, even if it is a classification task and there is no mask! anomalib/src/anomalib/post_processing/one_class.py Lines 107 to 108 in 8d14ae1
To fix this, I created this PR @samet-akcay #2513 The other problem you will face after this fix is, that the default evaluator will evaluate pixel and image metrics. anomalib/src/anomalib/models/components/base/anomalib_module.py Lines 375 to 380 in 8d14ae1
So if you have a classification task, you need to configure a custom evaluator. I'm not very familiar with the current config file design, but with the API, you would do it like this:
|
Describe the bug
when I tried to train a fastflow model by config file, I got this error.
the version is anomalib==2.0.0b2
Dataset
Folder
Model
FastFlow
Steps to reproduce the behavior
anomalib fit --config ./config.yaml
OS information
OS information:
Expected behavior
NG
Screenshots
`
Pip/GitHub
pip
What version/branch did you use?
2.0.0b2
Configuration YAML
Logs
Code of Conduct
The text was updated successfully, but these errors were encountered: