amazon-science / patchcore-inspection

Apache License 2.0
759 stars 152 forks source link

ModuleNotFoundError: No module named 'patchcore' #3

Closed janamoumita1997 closed 2 years ago

Cveinnt commented 2 years ago

@janamoumita1997 this is because the patchcore module is located in src/patchcore. If you just want to run the sample training script, you can move bin/run_patchcore.py into the src/, then change the script accordingly.

petergehler commented 2 years ago

Another possibility is to set the PYTHONPATH variable.


env PYTHONPATH=src python bin/run_patchcore.py
janamoumita1997 commented 2 years ago

Thanks @petergehler @Cveinnt . Both the suggestions works for me . Thanks a lot. Closing the isssue.