Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError: No module named 'patchcore' #86

Open
leibaoer opened this issue Oct 22, 2023 · 4 comments
Open

ModuleNotFoundError: No module named 'patchcore' #86

leibaoer opened this issue Oct 22, 2023 · 4 comments

Comments

@leibaoer
Copy link

I encountered this error when running the. sh file
10

@AnakinChou
Copy link

AnakinChou commented Oct 26, 2023

you need to install patchcore first.
try pip install -e .

@ghost
Copy link

ghost commented Oct 26, 2023

I encountered this error when running the. sh file 10

i had the same error you can try this ,copy the run_patchcore.py in **/src/patchcore.py ,and then use the cmd which readme suggests: python run_patchcore.py --gpu 1 --seed 0 --save_patchcore_model --log_group IM224_WR50_L2-3_P01_D1024-1024_PS-3_AN-1_S0 --log_project MVTecAD_Results results patch_core -b wideresnet50 -le layer2 -le layer3 --faiss_on_gpu --pretrain_embed_dimension 1024 --target_embed_dimension 1024 --anomaly_scorer_num_nn 1 --patchsize 3 sampler -p 0.1 approx_greedy_coreset dataset --resize 256 --imagesize 224 -d tielian mvtec G:\zr\MVTec
and may some args you shoule change,it can work.

@IAzukiI
Copy link

IAzukiI commented Mar 4, 2024

try $env:PYTHONPATH="src";

@calabashbro
Copy link

try add :
import sys
sys.path.append('/path to src/src/')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants