amazon-science / patchcore-inspection

Apache License 2.0
719 stars 146 forks source link

Missing argument 'DATA_PATH'. #24

Open maggiesam opened 2 years ago

maggiesam commented 2 years ago

I'm trying to train one of the training samples (I only removed --log_online since I read in issue #17 that it is not necessary). However when I try to run it I get the error

Error: Missing argument 'DATA_PATH'.

Does anyone know how to solve this?

svmaskery commented 2 years ago

DATA_PATH is basically the path to where you have stored your data. It has to be assigned before you run the run_patchcore.py script. Check the docs where it mentions: datapath=/path_to_mvtec_folder/mvtec

aytek03 commented 2 years ago

@svmaskery Where do we write in this datapath line? in terminal?

MSadriAghdam commented 2 years ago

yes, input it before the main code datapath=/folder/mvtec

senchoi commented 1 year ago

i'm trying this on Colab. It seems the machine doesn't see variable $datapath properly. Could it be a Colab issue? Mine still says Error: Missing argument 'DATA_PATH'. if I replace $datapath with /folder/mvtec explicitly. It seems working but it throws another error called Error: Missing option '--subdatasets' / '-d'.