hcw-00 / PatchCore_anomaly_detection

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

Trying to run the code with MVTec AD but: TypeError: 'NoneType' object is not iterable #9

Closed andreluizbvs closed 3 years ago

andreluizbvs commented 3 years ago

I tried to run the code with the carpet class of the MVTec AD, but the above error was yielded. I followed the installation process but, even so, this error appeared. Any idea why?

hcw-00 commented 3 years ago

Can you check your dataset path is correctly given?

andreluizbvs commented 3 years ago

@hcw-00 Thank you for the quick answer! I found out the problem: in the argument "--coreset_sampling_ratio 0.01", the 0.01 was being interpreted as a string object and not an integer.