intel / openvino-ai-plugins-gimp

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

Wont install, gimp is in custom folder on G:\GIMP 2.99 and script is git pulled inside of G:\GIMP 2.99 #39

Closed 2blackbar closed 8 months ago

2blackbar commented 1 year ago

I dont want any stuff on C and i dont want to be forced to keep them on C

openvino-ai-plugins-gimp Setup started Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com created virtual environment CPython3.10.9.final.0-64 in 470ms creator CPython3Windows(dest=G:\GIMP 2.99\openvino-ai-plugins-gimp\gimpenv3, clear=False, no_vcs_ignore=False, global=False) seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=C:\Users\BAZO\AppData\Local\pypa\virtualenv) added seed packages: GitPython==3.1.32, Jinja2==3.1.2, MarkupSafe==2.1.3, Pillow==10.0.0, PyYAML==6.0, Pygments==2.15.1, Pympler==1.0.1, altair==5.0.1, attrs==23.1.0, blinker==1.6.2, cachetools==5.3.1, certifi==2023.5.7, charset_normalizer==3.2.0, click==8.1.5, colorama==0.4.6, decorator==5.1.1, diffusers==0.18.2, filelock==3.12.2, fsspec==2023.6.0, ftfy==6.1.1, gitdb==4.0.10, huggingface_hub==0.16.4, idna==3.4, importlib_metadata==6.8.0, jsonschema==4.18.3, jsonschema_specifications==2023.6.1, markdown_it_py==3.0.0, mdurl==0.1.2, numpy==1.23.4, openvino==2022.3.0, packaging==23.1, pandas==2.0.3, pip==23.1.2, protobuf==3.20.3, pyarrow==12.0.1, pydeck==0.8.1b0, python_dateutil==2.8.2, pytz==2023.3, referencing==0.29.1, regex==2023.6.3, requests==2.31.0, rich==13.4.2, rpds_py==0.8.10, safetensors==0.3.1, semver==3.0.1, setuptools==67.8.0, six==1.16.0, smmap==5.0.0, streamlit==1.12.0, tokenizers==0.13.3, toml==0.10.2, toolz==0.12.0, tornado==6.3.2, tqdm==4.64.0, transformers==4.30.2, typing_extensions==4.7.1, tzdata==2023.3, tzlocal==5.0.1, urllib3==2.0.3, validators==0.20.0, watchdog==2.1.9, wcwidth==0.2.6, wheel==0.40.0, zipp==3.16.1 activators BashActivator,BatchActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator ERROR: Invalid requirement: 'openvino-ai-plugins-gimp\.' Hint: It looks like a path. File 'openvino-ai-plugins-gimp.' does not exist. openvino-ai-plugins-gimp Installed

########## 1>> Reference Models present in weights folder. You can also download them from open model zoo. 2>> Please move the weights folder from the cloned repository: openvino-ai-plugins-gimp and place in: C:\Users\BAZO\openvino-ai-plugins-gimp\weights 3>> Please add this path to Preferences --> Plug-ins in GIMP : G:\GIMP 2.99\openvino-ai-plugins-gimp\gimpopenvino\plugins ##########

openvino-ai-plugins-gimp Setup Ended


Do you want to continue setting up the models for all the plugin now? Enter Y/N:

2blackbar commented 1 year ago

https://github.com/intel/openvino-ai-plugins-gimp/issues/17#issuecomment-1636183533

This made install go forward but it still doesnt work, throws out errors

Gimp.main(StableDiffusion.gtype, sys.argv) gimp_plug_in_destroy_proxies: ERROR: GimpImage proxy with ID 1 was refed by plug-in, it MUST NOT do that! gimp_plug_in_destroy_proxies: ERROR: GimpLayer proxy with ID 2 was refed by plug-in, it MUST NOT do that! Traceback (most recent call last): File "G:\GIMP\openvino-ai-plugins-gimp\gimpenv3\Lib\site-packages\gimpopenvino\plugins\superresolution-ov\superresolution-ov.py", line 179, in run with open(os.path.join(config_path, "gimp_openvino_config.json"), "r") as file: FileNotFoundError: [Errno 2] No such file or directory: 'G:\GIMP\openvino-ai-plugins-gimp\gimpenv3\Lib\site-packages\gimpopenvino\plugins\superresolution-ov\..\..\tools\gimp_openvino_config.json'

(superresolution-ov.py:12940): LibGimp-WARNING **: 19:49:27.835: gimp_procedure_run: no return values, shouldn't happen G:\GIMP\openvino-ai-plugins-gimp\gimpenv3\Lib\site-packages\gimpopenvino\plugins\superresolution-ov\superresolution-ov.py:347: Warning: g_error_new: assertion 'domain != 0' failed Gimp.main(Superresolution.gtype, sys.argv) gimp_plug_in_destroy_proxies: ERROR: GimpImage proxy with ID 1 was refed by plug-in, it MUST NOT do that! gimp_plug_in_destroy_proxies: ERROR: GimpLayer proxy with ID 2 was refed by plug-in, it MUST NOT do that! Traceback (most recent call last): File "G:\GIMP\openvino-ai-plugins-gimp\gimpenv3\Lib\site-packages\gimpopenvino\plugins\superresolution-ov\superresolution-ov.py", line 179, in run with open(os.path.join(config_path, "gimp_openvino_config.json"), "r") as file: FileNotFoundError: [Errno 2] No such file or directory: 'G:\GIMP\openvino-ai-plugins-gimp\gimpenv3\Lib\site-packages\gimpopenvino\plugins\superresolution-ov\..\..\tools\gimp_openvino_config.json'

x-legion commented 1 year ago

image

espio999 commented 1 year ago

I think you should need rewrite "install.bat" as

gimpenv3\Scripts\python.exe -m pip install [absolute path of Python virtual environment]

Here is my case. https://impsbl.hatenablog.jp/entry/StableDiffusionOnWindowsPCwith8GB-RAM_GIMP_en

arisha07 commented 1 year ago

Hi there, currently the installation scripts and procedure requires one to have the GIMP 2.99 installed in the default location - C:\Program Files\GIMP 2.99 and the models in C:\Users\\openvino-ai-plugins-gimp. You will need some modification in the installation scripts for keeping these two in different location. We can try to take a look at this in the near future. You are also very much welcome in adding this feature and creating a PR. Thank You !

gitihobo commented 1 year ago

I am having the same issue as xlegion in my anaconda environment. which python version do I need or why is the install completely failing?

gblong1 commented 8 months ago

I think this issue should be closed. Please test with the new release and let us know if you still have issues. The recommended version of python is now 3.10.

innsaleteknik commented 6 months ago

#17 (comment)

This made install go forward but it still doesnt work, throws out errors

Gimp.main(StableDiffusion.gtype, sys.argv) gimp_plug_in_destroy_proxies: ERROR: GimpImage proxy with ID 1 was refed by plug-in, it MUST NOT do that! gimp_plug_in_destroy_proxies: ERROR: GimpLayer proxy with ID 2 was refed by plug-in, it MUST NOT do that! Traceback (most recent call last): File "G:\GIMP\openvino-ai-plugins-gimp\gimpenv3\Lib\site-packages\gimpopenvino\plugins\superresolution-ov\superresolution-ov.py", line 179, in run with open(os.path.join(config_path, "gimp_openvino_config.json"), "r") as file: FileNotFoundError: [Errno 2] No such file or directory: 'G:\GIMP\openvino-ai-plugins-gimp\gimpenv3\Lib\site-packages\gimpopenvino\plugins\superresolution-ov....\tools\gimp_openvino_config.json'

(superresolution-ov.py:12940): LibGimp-WARNING : 19:49:27.835: gimp_procedure_run: no return values, shouldn't happen G:\GIMP\openvino-ai-plugins-gimp\gimpenv3\Lib\site-packages\gimpopenvino\plugins\superresolution-ov\superresolution-ov.py:347: Warning: g_error_new: assertion 'domain != 0' failed Gimp.main(Superresolution.gtype**, sys.argv) gimp_plug_in_destroy_proxies: ERROR: GimpImage proxy with ID 1 was refed by plug-in, it MUST NOT do that! gimp_plug_in_destroy_proxies: ERROR: GimpLayer proxy with ID 2 was refed by plug-in, it MUST NOT do that! Traceback (most recent call last): File "G:\GIMP\openvino-ai-plugins-gimp\gimpenv3\Lib\site-packages\gimpopenvino\plugins\superresolution-ov\superresolution-ov.py", line 179, in run with open(os.path.join(config_path, "gimp_openvino_config.json"), "r") as file: FileNotFoundError: [Errno 2] No such file or directory: 'G:\GIMP\openvino-ai-plugins-gimp\gimpenv3\Lib\site-packages\gimpopenvino\plugins\superresolution-ov....\tools\gimp_openvino_config.json'

I am getting the same issue. What is the solution? Issue based on the current update

innsaleteknik commented 6 months ago

Sorry to ask again. But even after following all the steps, I am still getting the missing json file. Am i missing something?

arisha07 commented 6 months ago

Hi please run install.bat from outside of openvino-ai-plugins-gimp folder. Use the following command openvino-ai-plugins-gimp\install.bat as mentioned in the steps. So that your gimpenv3 gets created in G:\GIMP

innsaleteknik commented 6 months ago

Noted, I actually gave up and used upscalye application instead. Will try again and update.