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

Gradio Error #296

Closed
rumanto00 opened this issue May 5, 2022 · 2 comments · Fixed by #332
Closed

Gradio Error #296

rumanto00 opened this issue May 5, 2022 · 2 comments · Fixed by #332
Assignees
Milestone

Comments

@rumanto00
Copy link

running :
python tools/inference_gradio.py --config ./anomalib/models/patchcore/config.yaml --weight_path ./results/patchcore/mvtec/zipper/weights/model.ckp

error:
Traceback (most recent call last):
File "tools/inference_gradio.py", line 105, in
gradio_inferencer = get_inferencer(session_args.config, session_args.weight_path, session_args.meta_data)
File "tools/inference_gradio.py", line 74, in get_inferencer
config = get_configurable_parameters(config_path)
File "/home/rumanto/AI_Development/anomalib/anomalib/config/config.py", line 142, in get_configurable_parameters
config = OmegaConf.load(config_path)
File "/home/rumanto/miniconda3/envs/anomalib_env/lib/python3.8/site-packages/omegaconf/omegaconf.py", line 183, in load
with io.open(os.path.abspath(file_), "r", encoding="utf-8") as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/rumanto/AI_Development/anomalib/anomalib/models/anomalib/models/patchcore/config.yaml/config.yaml'

any one same result?

@djdameln djdameln added this to the v0.3.2 milestone May 13, 2022
@daMichaelB
Copy link

just a suggestion

the path /home/rumanto/AI_Development/anomalib/anomalib/models/anomalib/models/patchcore/config.yaml/config.yaml shows that config.yaml is doubled.

maybe try: --config ./anomalib/models/patchcore/

@rumanto00
Copy link
Author

yes. I had try that. it's raise same error (with io.open(os.path.abspath(file_), "r", encoding="utf-8") as f:
FileNotFoundError: [Errno 2] No such file or directory:...)

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

Successfully merging a pull request may close this issue.

4 participants