openvinotoolkit / anomalib

An anomaly detection library comprising state-of-the-art algorithms and features such as experiment management, hyper-parameter optimization, and edge inference.
https://anomalib.readthedocs.io/en/latest/
Apache License 2.0
3.8k stars 674 forks source link

Gradio Error #296

Closed rumanto00 closed 2 years ago

rumanto00 commented 2 years ago

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/anomalibenv/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?

daMichaelB commented 2 years ago

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 commented 2 years ago

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:...)