intel / openvino-ai-plugins-gimp

GIMP AI plugins with OpenVINO Backend
Apache License 2.0
447 stars 49 forks source link

Exception while using the plugins #62

Closed abconnor closed 8 months ago

abconnor commented 9 months ago

I successfully build the plugin and the sqare model and GIMP shows me the plugins, but when I start any plugin it shows me:

[ INFO ] Initializing Inference Engine... [ INFO ] Loading network: esrgan [ INFO ] Device: CPU [ INFO ] Reading network from IR... base shape: (194, 200, 3) self.net.input_info: {'input.1': <openvino.inference_engine.ie_api.InputInfoPtr object at 0x7fd3b47bee40>} iter1 input.1 Traceback (most recent call last): File "/home/andreas/openvino-ai-plugins-gimp/gimpenv3/lib/python3.9/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/andreas/openvino-ai-plugins-gimp/gimpenv3/lib/python3.9/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/andreas/openvino-ai-plugins-gimp/gimpenv3/lib/python3.9/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/andreas/openvino-ai-plugins-gimp/gimpenv3/lib/python3.9/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/andreas/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/andreas/openvino-ai-plugins-gimp/gimpenv3/lib/python3.9/site-packages/gimpopenvino/plugins/superresolution-ov/../../tools/superresolution-ov.py", line 68, in traceback.print_exception("DEBUG THE ERROR", file=file) TypeError: print_exception() missing 2 required positional arguments: 'value' and 'tb'

Any suggestions?

abconnor commented 9 months ago

Fixed it with solution https://github.com/intel/openvino-ai-plugins-gimp/pull/60.