Closed debug420 closed 8 months ago
Hi @debug420 - Not sure on the the first error, as we've not seen that before. The second errors is related to an updated diffusers package. We will be making a formal release in the next day, which should fix the second issue, for sure.
Hi @debug420 - the new release has been pushed. Can you update your code and let me know if you are still seeing issues?
I am now getting the following error when setting up: https://pastes.io/vmbocfccwc
It seems like everything aside from Stable diffusion works. When attempting to run stable diffusion on a layer, I get the following error in the output window:
Traceback (most recent call last):
File "C:\Users\Admin\gimpenv3\lib\site-packages\gimpopenvino\plugins\stable-diffusion-ov\stable-diffusion-ov.py", line 443, in run
list_models(config_path_output["weight_path"],"SD_1.5") +
File "C:\Users\Admin\gimpenv3\lib\site-packages\gimpopenvino\plugins\stable-diffusion-ov\stable-diffusion-ov.py", line 184, in list_models
for file in os.scandir(dir_path): #, recursive=True):
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\\Users\\Admin\\openvino-ai-plugins-gimp\\weights\\stable-diffusion-ov\\stable-diffusion-1.5'
(stable-diffusion-ov.py:41592): LibGimp-WARNING **: 17:29:18.888: gimp_procedure_run: no return values, shouldn't happen
C:\Users\Admin\gimpenv3\lib\site-packages\gimpopenvino\plugins\stable-diffusion-ov\stable-diffusion-ov.py:1220: Warning: g_error_new: assertion 'domain != 0' failed
Gimp.main(StableDiffusion.__gtype__, sys.argv)
gimp_plug_in_destroy_proxies: ERROR: GimpImage proxy with ID 23 was refed by plug-in, it MUST NOT do that!
gimp_plug_in_destroy_proxies: ERROR: GimpLayer proxy with ID 54 was refed by plug-in, it MUST NOT do that!
@debug420 - Thanks for the detailed log. The issue here is that the download of the models timed out and when you tried to run Stable Diffusion, the models were not present.
Can you rerun install.bat, Instead of downloading all, can you try just downloading the 1.5 square size and see if that works?
The issue seems to be solved, however, I seem to be having an issue when attempting to run the model on my GPU. I have a GTX 1660 Ti. There seems to be no issue when running with CPU, however I will include the logs just in case.
I generated with the following prompt: "Generate a cricle in the middle with the face of a kangaroo in the middle"
CPU Log:
https://pastes.io/8ylckvaeci (works fine but I thought I may as well include the log) Image generated by CPU: ![image](https://github.com/intel/openvino-ai-plugins-gimp/assets/64251443/893cf058-a01a-452a-bad7-e94687aaa5b2)
GPU Log:
``` (stable-diffusion-ov.py:14196): Gtk-CRITICAL **: 21:00:18.164: gtk_grid_attach: assertion '_gtk_widget_get_parent (child) == NULL' failed (stable-diffusion-ov.py:14196): GLib-GIO-WARNING **: 21:00:18.596: Unexpectedly, UWP app `KDEe.V.Okular_23.801.1522.0_x64__7vt06qxq7ptv8' (AUMId `KDEe.V.Okular_7vt06qxq7ptv8!KDEe.V.Okular') supports 5 extensions but has no verbs Waiting Waiting stable-diffusion model server killed Waiting C:\Users\Admin\gimpenv3\lib\site-packages\ngraph\helpers.py:9: FutureWarning: OpenVINO Inference Engine Python API is deprecated and will be removed in 2024.0 release.For instructions on transitioning to the new API, please refer to https://docs.openvino.ai/latest/openvino_2_0_transition_guide.html from openvino.inference_engine import IENetwork # type: ignore C:\Users\Admin\gimpenv3\Lib\site-packages\gimpopenvino\tools\openvino_common\models_ov\open_pose.py:18: FutureWarning: OpenVINO nGraph Python API is deprecated and will be removed in 2024.0 release.For instructions on transitioning to the new API, please refer to https://docs.openvino.ai/latest/openvino_2_0_transition_guide.html import ngraph as ng C:\Users\Admin\gimpenv3\lib\site-packages\controlnet_aux\open_pose\body.py:7: DeprecationWarning: Please use `gaussian_filter` from the `scipy.ndimage` namespace, the `scipy.ndimage.filters` namespace is deprecated. from scipy.ndimage.filters import gaussian_filter C:\Users\Admin\gimpenv3\lib\site-packages\controlnet_aux\open_pose\hand.py:4: DeprecationWarning: Please use `gaussian_filter` from the `scipy.ndimage` namespace, the `scipy.ndimage.filters` namespace is deprecated. from scipy.ndimage.filters import gaussian_filter C:\Users\Admin\gimpenv3\lib\site-packages\controlnet_aux\mediapipe_face\mediapipe_face_common.py:7: UserWarning: The module 'mediapipe' is not installed. The package will have limited functionality. Please install it using the command: pip install 'mediapipe' warnings.warn( [ INFO ] Model Name: SD_1.4 [ INFO ] Initializing Inference Engine... [ INFO ] Model Path: C:\Users\Admin\openvino-ai-plugins-gimp\weights\stable-diffusion-ov\stable-diffusion-1.4 [ INFO ] device_name: ['GPU', 'GPU', 'GPU', 'GPU'] Text Device: GPU unet Device: GPU Vae Device: GPU Ready model load complete. Running SD async Waiting [ INFO ] Starting inference... [ INFO ] Prompt: Generate a cricle in the middle with the face of a kangaroo in the middle [ INFO ] negative_prompt: [ INFO ] num_inference_steps: 30 [ INFO ] guidance_scale: 7.5 [ INFO ] strength: 1.0 [ INFO ] init_image: None [ INFO ] Random Seed: 2611731093 Image is NONE 3%|█████▉ ``` After about 20 minutes, the model was loaded and after about 15 minutes, the first inference step was completed. My GPU usage can be found below: ![image](https://github.com/intel/openvino-ai-plugins-gimp/assets/64251443/f442e62c-8c49-4a81-bc54-fb2180a218e1)
Is this normal? I was under the impression that a GPU would be able to generate such content at a much faster rate.
Hi @debug420 - This project uses OpenVINO which is optimized for Intel Hardware, so it is not expected to be fast on an NVIDIA device. If use an Intel GPU, you will see much better performance.
After I received the above error, I continued either way and received the following error:
I followed the following tutorial when downloading OpenVINO: https://docs.openvino.ai/2023.2/openvino_docs_install_guides_installing_openvino_from_archive_windows.html
Any ideas why this could be occuring? If any further information is required, let me know. Thanks