tweak setup and environment files for linux & pypatchmatch (#1580)

* tweak setup and environment files for linux & pypatchmatch

- Downgrade python requirements to 3.9 because 3.10 is not supported
  on Ubuntu 20.04 LTS (widely-used distro)
- Use our github pypatchmatch 0.1.3 in order to install Makefile
  where it needs to be.
- Restored "-e ." as the last install step on pip installs. Hopefully
  this will not trigger the high-CPU hang we've previously experienced.

* keep windows on basicsr 1.4.1

* keep windows on basicsr 1.4.1

* bump pypatchmatch requirement to 0.1.4

- This brings in a version of pypatchmatch that will gracefully
  handle internet connection not available at startup time.
- Also refactors and simplifies the handling of gfpgan's basicsr requirement
  across various platforms.
This commit is contained in:
Lincoln Stein 2022-11-28 20:22:31 -05:00 committed by GitHub
parent 6cc56043e2
commit 8423be539b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 16 additions and 22 deletions

View File

@ -41,6 +41,6 @@ dependencies:
- git+https://github.com/openai/CLIP.git@main#egg=clip - 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/Birch-san/k-diffusion.git@mps#egg=k_diffusion
- git+https://github.com/invoke-ai/clipseg.git@relaxed-python-requirement#egg=clipseg - git+https://github.com/invoke-ai/clipseg.git@relaxed-python-requirement#egg=clipseg
- git+https://github.com/invoke-ai/GFPGAN#egg=gfpgan - git+https://github.com/invoke-ai/GFPGAN@basicsr-1.4.2#egg=gfpgan
- git+https://github.com/invoke-ai/PyPatchMatch@0.1.1#egg=pypatchmatch - -e git+https://github.com/invoke-ai/PyPatchMatch@0.1.4#egg=pypatchmatch
- -e . - -e .

View File

@ -4,7 +4,7 @@ channels:
- conda-forge - conda-forge
- defaults - defaults
dependencies: dependencies:
- python>=3.9 - python=3.9.*
- pip=22.2.2 - pip=22.2.2
- numpy=1.23.3 - numpy=1.23.3
- pip: - pip:
@ -44,5 +44,5 @@ dependencies:
- git+https://github.com/Birch-san/k-diffusion.git@mps#egg=k-diffusion - git+https://github.com/Birch-san/k-diffusion.git@mps#egg=k-diffusion
- git+https://github.com/invoke-ai/clipseg.git@relaxed-python-requirement#egg=clipseg - git+https://github.com/invoke-ai/clipseg.git@relaxed-python-requirement#egg=clipseg
- git+https://github.com/invoke-ai/GFPGAN@basicsr-1.4.2#egg=gfpgan - git+https://github.com/invoke-ai/GFPGAN@basicsr-1.4.2#egg=gfpgan
- git+https://github.com/invoke-ai/PyPatchMatch@0.1.1#egg=pypatchmatch - -e git+https://github.com/invoke-ai/PyPatchMatch@0.1.4#egg=pypatchmatch
- -e . - -e .

View File

@ -4,7 +4,7 @@ channels:
- conda-forge - conda-forge
- defaults - defaults
dependencies: dependencies:
- python=3.10 - python=3.9.*
- pip=22.2.2 - pip=22.2.2
- numpy=1.23.3 - numpy=1.23.3
- torchvision=0.13.1 - torchvision=0.13.1
@ -43,5 +43,5 @@ dependencies:
- git+https://github.com/Birch-san/k-diffusion.git@mps#egg=k-diffusion - git+https://github.com/Birch-san/k-diffusion.git@mps#egg=k-diffusion
- git+https://github.com/invoke-ai/clipseg.git@relaxed-python-requirement#egg=clipseg - git+https://github.com/invoke-ai/clipseg.git@relaxed-python-requirement#egg=clipseg
- git+https://github.com/invoke-ai/GFPGAN@basicsr-1.4.2#egg=gfpgan - git+https://github.com/invoke-ai/GFPGAN@basicsr-1.4.2#egg=gfpgan
- git+https://github.com/invoke-ai/PyPatchMatch@0.1.1#egg=pypatchmatch - -e git+https://github.com/invoke-ai/PyPatchMatch@0.1.4#egg=pypatchmatch
- -e . - -e .

View File

@ -59,7 +59,7 @@ dependencies:
- git+https://github.com/Birch-san/k-diffusion.git@mps#egg=k-diffusion - git+https://github.com/Birch-san/k-diffusion.git@mps#egg=k-diffusion
- git+https://github.com/invoke-ai/clipseg.git@relaxed-python-requirement#egg=clipseg - git+https://github.com/invoke-ai/clipseg.git@relaxed-python-requirement#egg=clipseg
- git+https://github.com/invoke-ai/GFPGAN@basicsr-1.4.2#egg=gfpgan - git+https://github.com/invoke-ai/GFPGAN@basicsr-1.4.2#egg=gfpgan
- git+https://github.com/invoke-ai/PyPatchMatch@0.1.1#egg=pypatchmatch - -e git+https://github.com/invoke-ai/PyPatchMatch@0.1.4#egg=pypatchmatch
- -e . - -e .
variables: variables:
PYTORCH_ENABLE_MPS_FALLBACK: 1 PYTORCH_ENABLE_MPS_FALLBACK: 1

View File

@ -4,7 +4,7 @@ channels:
- conda-forge - conda-forge
- defaults - defaults
dependencies: dependencies:
- python>=3.9 - python=3.10.*
- pip=22.2.2 - pip=22.2.2
- numpy=1.23.3 - numpy=1.23.3
- torchvision=0.13.1 - torchvision=0.13.1
@ -43,6 +43,6 @@ dependencies:
- git+https://github.com/openai/CLIP.git@main#egg=clip - 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/Birch-san/k-diffusion.git@mps#egg=k_diffusion
- git+https://github.com/invoke-ai/clipseg.git@relaxed-python-requirement#egg=clipseg - git+https://github.com/invoke-ai/clipseg.git@relaxed-python-requirement#egg=clipseg
- git+https://github.com/invoke-ai/GFPGAN#egg=gfpgan - git+https://github.com/invoke-ai/GFPGAN@basicsr-1.4.1#egg=gfpgan
- git+https://github.com/invoke-ai/PyPatchMatch@0.1.1#egg=pypatchmatch - -e git+https://github.com/invoke-ai/PyPatchMatch@0.1.4#egg=pypatchmatch
- -e . - -e .

View File

@ -32,7 +32,9 @@ torch-fidelity
torchmetrics torchmetrics
transformers==4.21.* transformers==4.21.*
picklescan picklescan
git+https://github.com/invoke-ai/GFPGAN@basicsr-1.4.1#egg=gfpgan ; platform_system == 'Windows'
git+https://github.com/invoke-ai/GFPGAN@basicsr-1.4.2#egg=gfpgan ; platform_system != 'Windows'
git+https://github.com/openai/CLIP.git@main#egg=clip 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/Birch-san/k-diffusion.git@mps#egg=k-diffusion
git+https://github.com/invoke-ai/clipseg.git@relaxed-python-requirement#egg=clipseg git+https://github.com/invoke-ai/clipseg.git@relaxed-python-requirement#egg=clipseg
git+https://github.com/invoke-ai/PyPatchMatch@0.1.1#egg=pypatchmatch git+https://github.com/invoke-ai/PyPatchMatch@0.1.4#egg=pypatchmatch

View File

@ -1,7 +1,4 @@
-r environments-and-requirements/requirements-base.txt -r environments-and-requirements/requirements-base.txt
git+https://github.com/invoke-ai/GFPGAN@basicsr-1.4.2#egg=gfpgan
# Get hardware-appropriate torch/torchvision # Get hardware-appropriate torch/torchvision
--extra-index-url https://download.pytorch.org/whl/rocm5.1.1 --trusted-host https://download.pytorch.org --extra-index-url https://download.pytorch.org/whl/rocm5.1.1 --trusted-host https://download.pytorch.org
torch torch

View File

@ -1,6 +1,3 @@
--pre torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/nightly/cpu --pre torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/nightly/cpu
git+https://github.com/invoke-ai/GFPGAN@basicsr-1.4.2#egg=gfpgan
-r environments-and-requirements/requirements-base.txt -r environments-and-requirements/requirements-base.txt
-e . -e .

View File

@ -1,3 +1,2 @@
-r environments-and-requirements/requirements-base.txt -r environments-and-requirements/requirements-base.txt
git+https://github.com/invoke-ai/GFPGAN@basicsr-1.4.2#egg=gfpgan
-e . -e .

View File

@ -1,5 +1,4 @@
-r environments-and-requirements/requirements-base.txt -r environments-and-requirements/requirements-base.txt
git+https://github.com/invoke-ai/GFPGAN@basicsr-1.4.2#egg=gfpgan
grpcio<1.51.0 grpcio<1.51.0
protobuf==3.19.6 protobuf==3.19.6
torch<1.13.0 torch<1.13.0

View File

@ -1,5 +1,4 @@
-r environments-and-requirements/requirements-base.txt -r environments-and-requirements/requirements-base.txt
git+https://github.com/invoke-ai/GFPGAN@basicsr-1.4.1#egg=gfpgan
# Get hardware-appropriate torch/torchvision # Get hardware-appropriate torch/torchvision
--extra-index-url https://download.pytorch.org/whl/cu116 --trusted-host https://download.pytorch.org --extra-index-url https://download.pytorch.org/whl/cu116 --trusted-host https://download.pytorch.org
basicsr==1.4.1 basicsr==1.4.1

View File

@ -16,6 +16,7 @@ kornia
numpy numpy
pyreadline3 pyreadline3
realesrgan realesrgan
requests==2.25.1
send2trash send2trash
streamlit streamlit
taming-transformers-rom1504 taming-transformers-rom1504
@ -29,4 +30,4 @@ clip
clipseg clipseg
gfpgan gfpgan
k-diffusion k-diffusion
pypatchmatch

View File

@ -19,7 +19,7 @@ def _get_requirements(path):
return packages return packages
VERSION = '2.1.4' VERSION = '2.2.0'
DESCRIPTION = ('An implementation of Stable Diffusion which provides various new features' DESCRIPTION = ('An implementation of Stable Diffusion which provides various new features'
' and options to aid the image generation process') ' and options to aid the image generation process')
LONG_DESCRIPTION = ('This version of Stable Diffusion features a slick WebGUI, an' LONG_DESCRIPTION = ('This version of Stable Diffusion features a slick WebGUI, an'