hcw-00 / PatchCore_anomaly_detection

Unofficial implementation of PatchCore anomaly detection
Apache License 2.0
317 stars 95 forks source link

get low performance at screw class(MVTecDataset). sample_ratio:0.001 layer:2 3 #34

Closed Hannibal120 closed 2 years ago

Hannibal120 commented 2 years ago

sample_ratio:0.001 layer:2 3 image

I try to use layer 1 2 and then get a higher score, but it takes too much time when testing. image

sample_ratio:0.01 layer:2 3. also takes a lot of time. image

how to get an acceptable result while using less time at screw class?

Hannibal120 commented 2 years ago

https://github.com/hcw-00/PatchCore_anomaly_detection/issues/19 torch.cdist is useful !!!