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
{{ message }}
Repository navigation
DRAEM MODEL - Heatmap shows everything is detected as anomaly #2529
When predicting some tests images (with synthetic defects, as I don't have real samples), the resulting heatmap indicates that the entire image is abnormal.
I'm trying to understand the result, as it has no sense, as the images come from the same distribution. Am I missing something?
model=TorchInferencer(path_model)
metadata= {
"image_threshold": 0.9, # threshold to label image as anomaly"pixel_threshold": 0.9, # threshold to label pixel as anomaly"task": "segmentation", # to return also boxes and box labels
}
result=model.predict(image_path, metadata=metadata)
@Paucaster3, have you tried Engine.predict()? to see if you have consistent results.
There could be multiple reasons; (i) there could potentially be discrepancy between your lightning model and torch model that you are exporting. (ii) as you mentioned your synthetic anomalous are not distinct enough to draw a boundary between normal and abnormal, (iii) DRAEM may not be suitable for this use-case, and you might want to try some other models.
Activity
samet-akcay commentedon Jun 11, 2025
@Paucaster3, have you tried
Engine.predict()?to see if you have consistent results.There could be multiple reasons; (i) there could potentially be discrepancy between your lightning model and torch model that you are exporting. (ii) as you mentioned your synthetic anomalous are not distinct enough to draw a boundary between normal and abnormal, (iii) DRAEM may not be suitable for this use-case, and you might want to try some other models.
Have you tried any any of these?