intel / openvino-ai-plugins-gimp

GIMP AI plugins with OpenVINO Backend
Apache License 2.0
512 stars 55 forks source link

While compiling #139

Closed StrangerGithuber closed 1 month ago

StrangerGithuber commented 1 month ago

Hi In the other issue I mentioned the windows username has space so I did rename my username so it will not have a space so I were able to install the plugin. However when I download Stable Difussion 1.5 Square then it downloads nicely however when it says "Compiling models for NPU" then nothing happens. I did check the cmd and I got this error:

[twain-acquire] The catalog directory does not exist: C:\Program Files\GIMP 2.99\32\share\locale
[twain-acquire] Override method set_i18n() for the plug-in to customize or disable localization.
[twain-acquire] Localization disabled
Error in set_translation_domain. This is expected if running GIMP 2.99.11 or later
Error in set_translation_domain. This is expected if running GIMP 2.99.11 or later
Error in set_translation_domain. This is expected if running GIMP 2.99.11 or later
C:\Users\JohnSmith\openvino-ai-plugins-gimp\weights\..\gimp_openvino_run_sd.json not found, loading defaults
Downloading Intel/sd-1.5-square-quantized Models
Creating NPU model for unet_int8a16
Creating NPU model for unet_int8
Creating NPU model for unet_bs1
Creating NPU model for text_encoder
Failed to compile and export model: Exception from src/inference/src/cpp/core.cpp:124:
Exception from src/inference/src/dev/plugin.cpp:58:
Exception from src/plugins/intel_npu/src/plugin/src/plugin.cpp:697:
Exception from src/plugins/intel_npu/src/plugin/src/compiled_model.cpp:62:
Exception from src/plugins/intel_npu/src/compiler/src/zero_compiler_in_driver.cpp:853:
L0 pfnCreate2 result: ZE_RESULT_ERROR_INVALID_ARGUMENT, code 0x78000004

Failed to compile and export model: Exception from src/inference/src/cpp/core.cpp:124:
Exception from src/inference/src/dev/plugin.cpp:58:
Exception from src/plugins/intel_npu/src/plugin/src/plugin.cpp:697:
Exception from src/plugins/intel_npu/src/plugin/src/compiled_model.cpp:62:
Exception from src/plugins/intel_npu/src/compiler/src/zero_compiler_in_driver.cpp:853:
L0 pfnCreate2 result: ZE_RESULT_ERROR_INVALID_ARGUMENT, code 0x78000004

No idea what can be the problem. I have Intel 9 Ultra 185H, so in theory should work the NPU. The task manager shows that I have.

RyanMetcalfeInt8 commented 1 month ago

Hi @StrangerGithuber,

Which NPU driver do you have installed? You may want to try updating it to the latest version (.3053) here: https://www.intel.com/content/www/us/en/download/794734/intel-npu-driver-windows.html

(This is what I have on my Core Ultra 7 165H, and it works fine)

StrangerGithuber commented 1 month ago

Yep. It worked for me too this way. Thanks for the help. :)