intel / openvino-ai-plugins-gimp

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

how do i move "weight" folder (contains the models) to another disk #134

Closed vusynhathoang closed 2 months ago

vusynhathoang commented 2 months ago

without the program not recognize it?

gblong1 commented 2 months ago

The easiest way to do this is to create a link. For example, if you want to move the weights folder to D:\weights, you can open a command window (not power shell), navigate to where the weights folder was, and use: mklink weights d:\weights /d

This will create a link, and the plugin will recognize the it.

vusynhathoang commented 2 months ago

thanks. also the plugin not working, returned this: C:\Users\Public\GIMP\gimpenv3\Lib\site-packages\gimpopenvino\plugins\superresolution_ov\superresolution_ov.py:334: Warning: g_error_new: assertion 'domain != 0' failed Gimp.main(Superresolution.gtype, sys.argv)

gblong1 commented 2 months ago

Can you tell me when this error is reported? For example, are you trying to use super resolution on an image, and if so, what is the size of the image? Can you also double confirm the version of GIMP you are using?

vusynhathoang commented 2 months ago

oh, sorry. my gimps version is 2.99.18

i installed openvino-ai-plugins-gimp and left everything on default (i didnt move the weight folder)

i did add the plugins folder path as this: C:\Users\Public\GIMP\gimpenv3\Lib\site-packages\gimpopenvino\plugins

i tried stable diffusion too but it just given the message similar to this C:\Users\Public\GIMP\gimpenv3\Lib\site-packages\gimpopenvino\plugins\superresolution_ov\superresolution_ov.py:334: Warning: g_error_new: assertion 'domain != 0' failed Gimp.main(Superresolution.gtype, sys.argv)

the traceback: Traceback (most recent call last): File "C:\Users\Public\GIMP\gimpenv3\Lib\site-packages\gimpopenvino\plugins\stable_diffusion_ov\stable_diffusion_ov.py", line 363, in run save_image(image, list_layers, os.path.join(config_path_output["weight_path"], "..", "layer_init_image.png")) File "C:\Users\Public\GIMP\gimpenv3\Lib\site-packages\gimpopenvino\plugins\stable_diffusion_ov..\openvino_utils\plugin_utils.py", line 50, in save_image Gimp.get_pdb().run_procedure( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'PDB' object has no attribute 'run_procedure'. Did you mean: 'lookup_procedure'?

(stable_diffusion_ov.py:29528): LibGimp-WARNING **: 14:43:27.429: _gimp_procedure_run_array: no return values, shouldn't happen C:\Users\Public\GIMP\gimpenv3\Lib\site-packages\gimpopenvino\plugins\stable_diffusion_ov\stable_diffusion_ov.py:1051: Warning: g_error_new: assertion 'domain != 0' failed Gimp.main(StableDiffusion.gtype, sys.argv)

vusynhathoang commented 2 months ago

and i use windows

vusynhathoang commented 2 months ago

do i have to move the weight content to the plugin folder?

gblong1 commented 2 months ago

Please downgrade to v2.99.16 of GIMP. This should resolve your issues. There is a weird UI bug with 2.99.18 that causes the window to flash which makes a bad user experience.

You do not need to move anything manually. The install.bat should take care of all the setup.

vusynhathoang commented 2 months ago

v2.99.16 works! somehow it does not recognize my nvidia gpu

vusynhathoang commented 2 months ago

and the power mode option only has: best performance

gblong1 commented 2 months ago

Since the plugin is using OpenVINO, it works best on Intel hardware. We don't support Nvidia GPUs