From 6616fa835ac4318bf53419f2b54b88c962559578 Mon Sep 17 00:00:00 2001 From: Lincoln Stein Date: Fri, 4 Nov 2022 00:47:03 -0400 Subject: [PATCH] fix Windows library dependency issues This commit addresses two bugs: 1) invokeai.py crashes immediately with a message about an undefined attritube sigKILL (closes #1288). The fix is to pin torch at 1.12.1. 2) Version 1.4.2 of basicsr fails to load properly on Windows, and is a requirement of realesrgan, however 1.4.1 works. Pinning basicsr in our requirements file resulted in a dependency conflict, so I ended up cloning realesrgan into the invoke-ai Git space and changing the requirements file there. If there is a more elegant solution, please advise. --- requirements-lin-win-colab-CUDA.txt | 4 ++-- requirements.txt | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/requirements-lin-win-colab-CUDA.txt b/requirements-lin-win-colab-CUDA.txt index 91c8d0f35c..bb6a9ae9c8 100644 --- a/requirements-lin-win-colab-CUDA.txt +++ b/requirements-lin-win-colab-CUDA.txt @@ -2,6 +2,6 @@ # Get hardware-appropriate torch/torchvision --extra-index-url https://download.pytorch.org/whl/cu116 --trusted-host https://download.pytorch.org -torch -torchvision +torch==1.12.1 +torchvision==0.13.1 -e . diff --git a/requirements.txt b/requirements.txt index 1618e4a427..939463e36e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -36,5 +36,6 @@ realesrgan diffusers git+https://github.com/openai/CLIP.git@main#egg=clip git+https://github.com/Birch-san/k-diffusion.git@mps#egg=k-diffusion -git+https://github.com/TencentARC/GFPGAN.git#egg=gfpgan +git+https://github.com/invoke-ai/Real-ESRGAN.git#egg=realesrgan +git+https://github.com/invoke-ai/GFPGAN.git#egg=gfpgan -e git+https://github.com/invoke-ai/clipseg.git@models-rename#egg=clipseg