You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running inference on a custom dataset for a DFM model with the classification task I found out that the anomaly heatmaps were not generated properly, they are just empty. I reproduced this problem with the MVtec dataset using the default config.yaml file for the model only changing task from segmentation to classification and save_images to True. Here are two examples.
Describe the solution you'd like
However when using the task segmentation the anomaly heatmaps are generated as expected. Would it be possible to have them for the classification task for the DFM model instead of empty ones? Just like it is the case for other models in anomalib. Here are the two corresponding images using segmentation.
Additional context
No response
The text was updated successfully, but these errors were encountered:
There is some work in progress in #1378 to also add classification score to segmentation visualization.
The mask is still displayed in visualizer, so that's not a bug. But I identified the reason for mask being all zeros in case of classification. It is because of these lines:
Since mask is not added to batch in classification, mask threshold is set to same value as image threshold, which is completely wrong. So when normalization happens, all masks become 0.
I think a solution would be to add mask to dataset even in case of classification here:
What is the motivation for this task?
When running inference on a custom dataset for a DFM model with the classification task I found out that the anomaly heatmaps were not generated properly, they are just empty. I reproduced this problem with the MVtec dataset using the default config.yaml file for the model only changing task from segmentation to classification and save_images to True. Here are two examples.
Describe the solution you'd like
However when using the task segmentation the anomaly heatmaps are generated as expected. Would it be possible to have them for the classification task for the DFM model instead of empty ones? Just like it is the case for other models in anomalib. Here are the two corresponding images using segmentation.
Additional context
No response
The text was updated successfully, but these errors were encountered: