Closed andyyeh75 closed 8 months ago
Hi, can you do a fresh clone and try again. Had pushed a fix for this few days ago.
hi @arisha07
Strange. my result is the same with the error after a fresh clone.
RuntimeError: Couldn't create directory [/home/u/openvino-ai-plugins-gimp/weights/superresolution-ov/realesrgan.xml/..], err=Not a directory)
3 commits are included.
commit ece97a09f1f4986cd6d4d9ae03ca0bf897e8a6e8 (HEAD -> main, origin/main, origin/HEAD, 0a) Merge: 17f6f01 730ebb6 Author: Arisha Kumar arisha.kumar@intel.com Date: Thu Oct 5 12:07:00 2023 -0700
Merge pull request #57 from intel/version_1_5
Version 1 5
commit 730ebb65e503afdecd1b59eb1c46c57b1b600fae (origin/version_1_5) Merge: f86b6d6 3bd962a Author: arisha07 arisha.kumar@intel.com Date: Thu Oct 5 11:02:01 2023 -0700
Merge branch 'version_1_5' of https://github.com/intel/openvino-ai-plugins-gimp into version_1_5
commit f86b6d62c9325bef5d7149f61b8acb2953cd7574 Author: arisha07 arisha.kumar@intel.com Date: Thu Oct 5 11:01:01 2023 -0700
Added controlnet-canny edge support
can you check if this folder contains any models or not - /home/u/openvino-ai-plugins-gimp/weights/superresolution-ov
Got the same error, it's mainly because it does not recognize a join with ..
using os.path.dirname(model_path)
instead works fine
Hi team,
I cannot execute these 3 features, semantic segmentation Plugin, Super Resolution Plugin, and Style Transfer Plugin, all with similar logs. Situation the same for both CPU and GPU. Thanks.
Logs:
[ INFO ] Initializing Inference Engine... [ INFO ] Loading network: esrgan [ INFO ] Device: CPU [ INFO ] Reading network from IR... base shape: (512, 512, 3) self.net.input_info: {'input.1': <openvino.inference_engine.ie_api.InputInfoPtr object at 0x7ff3f04e5710>} iter1 input.1 Traceback (most recent call last): File "/home/u/openvino-ai-plugins-gimp/gimpenv3/lib/python3.10/site-packages/gimpopenvino/plugins/superresolution-ov/../../tools/superresolution-ov.py", line 53, in
output = get_sr(image, s, model_name=model_name, weight_path=weight_path, device=device)
File "/home/u/openvino-ai-plugins-gimp/gimpenv3/lib/python3.10/site-packages/gimpopenvino/plugins/superresolution-ov/../../tools/superresolution-ov.py", line 23, in get_sr
out = run(img, os.path.join(weight_path, "superresolution-ov", "realesrgan.xml"), device, model_name)
File "/home/u/openvino-ai-plugins-gimp/gimpenv3/lib/python3.10/site-packages/gimpopenvino/tools/openvino_common/superes_run_ov.py", line 48, in run
pipeline = AsyncPipeline(ie, model, model_path, plugin_config, device, 1)
File "/home/u/openvino-ai-plugins-gimp/gimpenv3/lib/python3.10/site-packages/gimpopenvino/tools/openvino_common/pipelines/async_pipeline.py", line 89, in init
ie.set_config(config={"CACHE_DIR": os.path.join(model_path, '..', 'cache')}, device_name=device)
File "ie_api.pyx", line 540, in openvino.inference_engine.ie_api.IECore.set_config
RuntimeError: Couldn't create directory [/home/u/openvino-ai-plugins-gimp/weights/superresolution-ov/realesrgan.xml/..], err=Not a directory)
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/u/openvino-ai-plugins-gimp/gimpenv3/lib/python3.10/site-packages/gimpopenvino/plugins/superresolution-ov/../../tools/superresolution-ov.py", line 68, in
traceback.print_exception("DEBUG THE ERROR", file=file)
File "/usr/lib/python3.10/traceback.py", line 116, in print_exception
value, tb = _parse_value_tb(exc, value, tb)
File "/usr/lib/python3.10/traceback.py", line 98, in _parse_value_tb
return exc, exc.traceback
AttributeError: 'str' object has no attribute 'traceback'