hcw-00 / PatchCore_anomaly_detection

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

What is training on patchCore? (I think that patchCore does not have training phase) #52

Open edwardcho opened 1 year ago

edwardcho commented 1 year ago

Hello Sir.

I have interesting anomaly detection. I found your code in paperwithcode, I want to try to test your code.

I think that patchCore does not have training-phase (Neural Networks) as PaDiM. But your code has training-phase.

What is this??

Thanks, Edward Cho.

hcw-00 commented 1 year ago

Hi~ Yes. PatchCore does not need a training. In the code it just extract features and does not update parameters. The term "train" is just part of methods name predefined by pytorch-lightning.

edwardcho commented 1 year ago

Hello Sir,

Thank your for your reply quickly.

But I confuse that I saw "num_epochs" in Input-parameters. You did set that "num_epochs" : 1 only, If I do change this value (ex: num_epochs : 100), what happened ?? is this not correct??

Thanks, Edward Cho.

Leonardo0325 commented 1 year ago

@edwardcho It will be very slow until crashes