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.43k stars 2.41k forks source link

[bug]: patchmatch failed to load or compile (/usr/lib64/libtiff.so.6: undefined symbol) #6356

Open ThisNekoGuy opened 5 months ago

ThisNekoGuy commented 5 months ago

Is there an existing issue for this problem?

Operating system

Linux

GPU vendor

AMD (ROCm)

GPU model

RX 7800 XT

GPU VRAM

16GB

Version number

4.2.0

Browser

LibreWolf 125.0.3-1 (Firefox-based Browser)

Python dependencies

{
  "accelerate": "0.29.2",
  "compel": "2.0.2",
  "cuda": null,
  "diffusers": "0.27.2",
  "numpy": "1.26.4",
  "opencv": "4.9.0.80",
  "onnx": "1.15.0",
  "pillow": "10.3.0",
  "python": "3.11.9",
  "torch": "2.2.2+rocm5.6",
  "torchvision": "0.17.2+rocm5.6",
  "transformers": "4.39.3",
  "xformers": null
}

What happened

For some reason I get a patchmatch error in my terminal about /usr/lib64/libtiff.so.6 having an undefined symbol preventing it from loading:

Generate images with a browser-based interface
>> patchmatch.patch_match: ERROR - patchmatch failed to load or compile (/usr/lib64/libtiff.so.6: undefined symbol: jpeg12_read_raw_data, version LIBJPEG_6.2).
>> patchmatch.patch_match: INFO - Refer to https://invoke-ai.github.io/InvokeAI/installation/060_INSTALL_PATCHMATCH/ for installation instructions.
[2024-05-12 13:08:57,141]::[InvokeAI]::INFO --> Patchmatch not loaded (nonfatal)
[2024-05-12 13:09:04,040]::[InvokeAI]::INFO --> Using torch device: AMD Radeon RX 7800 XT
[2024-05-12 13:09:04,256]::[InvokeAI]::INFO --> cuDNN version: 2020000
[2024-05-12 13:09:04,508]::[uvicorn.error]::INFO --> Started server process [5848]
[2024-05-12 13:09:04,508]::[uvicorn.error]::INFO --> Waiting for application startup.
[2024-05-12 13:09:04,508]::[InvokeAI]::INFO --> InvokeAI version 4.2.0
[2024-05-12 13:09:04,508]::[InvokeAI]::INFO --> Root directory = /mnt/chonker/InvokeAI/InstallDir
[2024-05-12 13:09:04,528]::[InvokeAI]::INFO --> Initializing database at /mnt/chonker/InvokeAI/InstallDir/databases/invokeai.db
[2024-05-12 13:09:06,138]::[uvicorn.error]::INFO --> Application startup complete.
[2024-05-12 13:09:06,138]::[uvicorn.error]::INFO --> Uvicorn running on http://127.0.0.1:9090 (Press CTRL+C to quit)

What you expected to happen

I expected no patchmatch error to occur.

How to reproduce the problem

  1. Install media-libs/tiff with jpeg image support
  2. Install opencv
  3. Symlink /usr/lib/pkgconfig/opencv4.pc to /usr/lib/pkgconfig/opencv.pc
  4. Install and set openblas as the blas implementation
  5. Install InvokeAI
  6. Launch the InvokeAI start script

Additional context

OS: Gentoo Linux (LLVM17-based) System libtiff version: 4.6.0

Discord username

No response

Autantpourmoi commented 3 months ago

having same issue trying to resolve the "patchmatch.patch_match: ERROR - patchmatch failed to load or compile (Command 'make clean && make' returned non-zero exit status 2.)." , followed the instructions on tuto and know i have this error Actually patchmatch never worked for me, linux fedora, last invokeai version , rtx 3090