amazon-science / patchcore-inspection

Apache License 2.0
719 stars 146 forks source link

Small typo in run_patchcore.py for patchcore.load() method parameter #50

Open StefanoSamele-PoliMi opened 1 year ago

StefanoSamele-PoliMi commented 1 year ago

Hello,

Thank you for sharing the code of your exciting work.

I think there is a small typo in the name of the parameter used for the number of nearest neighbors (line 309 run_patchcore.py). In the Patchcore load method, it is declared as anomaly_score_num_nn, while in the mentioned file it is used as anomaly_scorer_num_nn=anomaly_scorer_num_nn.

This is preventing the command line argument (declared as anomaly_scorer_num_nn) from being effective.