invoke-ai / InvokeAI

Invoke is a leading creative engine for Stable Diffusion models, empowering professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry leading WebUI, and serves as the foundation for multiple commercial products.
https://invoke-ai.github.io/InvokeAI/
Apache License 2.0
23.34k stars 2.4k forks source link

[bug]: Fedora has got newest verstion of opencv_gapi (4.0.9) #6753

Closed metal3d closed 1 month ago

metal3d commented 1 month ago

Is there an existing issue for this problem?

Operating system

Linux

GPU vendor

Nvidia (CUDA)

GPU model

RTX 3070 FE

GPU VRAM

No response

Version number

4.2.7

Browser

Brave

Python dependencies

No response

What happened

Impossoble to compile pypatchmatch

What you expected to happen

You should accept newest version of opencv_gapi and not stick to one version

How to reproduce the problem

Additional context

Python 3.10.14 (main, Apr 17 2024, 00:00:00) [GCC 14.0.1 20240411 (Red Hat 14.0.1-0)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from patchmatch import patch_match
>> patchmatch.patch_match: ERROR - patchmatch failed to load or compile (libopencv_stitching.so.408: cannot open shared object file: No such file or directory).
>> patchmatch.patch_match: INFO - Refer to https://invoke-ai.github.io/InvokeAI/installation/060_INSTALL_PATCHMATCH/ for installation instructions.

ls -la /usr/lib64/libopencv_gapi*
lrwxrwxrwx. 1 root root      21 23 févr. 01:00 /usr/lib64/libopencv_gapi.so -> libopencv_gapi.so.409
lrwxrwxrwx. 1 root root      23 23 févr. 01:00 /usr/lib64/libopencv_gapi.so.409 -> libopencv_gapi.so.4.9.0
-rwxr-xr-x. 1 root root 4974712 23 févr. 01:00 /usr/lib64/libopencv_gapi.so.4.9.0

Discord username

No response

psychedelicious commented 1 month ago

Apologies if I am misunderstanding the issue, but I think this should be raised with https://github.com/mauwii/PyPatchMatch.

ericek111 commented 1 month ago

The OpenCV version in your system is higher than the one patchmatch was linked against. Recompile the C++ bindings manually:

cd .venv/lib/python3.10/site-packages/patchmatch
make
metal3d commented 1 month ago

I'm sorry. There were too many problems to create my own node with several packages version like onnxruntime, OpenCV, or even with libcuda...

I switched to ComfyUI as my general uses was inside in the node editor and I've got less problem with requirements and dependencies.

I maybe will return to InvokeAI later, but it seems that I'm not the target user kind anymore (at least, for now).

No problem! I really love this project and I still convince people to use it.