gathierry / FastFlow

Apache License 2.0
124 stars 22 forks source link

How to visualization the anomaly map? #5

Closed Zigars closed 2 years ago

Zigars commented 2 years ago

I want use your code in my own dataset, but I do not know how to visualization the anomaly map. So I can't see the detection results derectly. Can you give me some advice?

gathierry commented 2 years ago

basically, you just need to convert the output to a numpy array, then draw a heatmap with matplotlib

Zigars commented 2 years ago

Actually, the anomaly_map's datas are like this: image

I don't know how to caculate this anomaly_map from a normalization flow, and the original paper doesn't mention how to get the anomaly_map, even loss function haven't mention either. I'm confuse about these problem.

gathierry commented 2 years ago

if this is your anomaly map then each value is the anomaly score for each pixel, just draw a heatmap of it