Skip to content

[Task]: Anomaly heat map not generated correctly for DFM model in classification #1521

@JakeNail

Description

@JakeNail

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.
Screenshot 2023-12-04 153208
Screenshot 2023-12-04 153307

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.
Screenshot 2023-12-04 154305
Screenshot 2023-12-04 154243

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions