-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
13 changed files
with
16 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,6 +41,6 @@ dependencies: | |
- 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/invoke-ai/clipseg.git@relaxed-python-requirement#egg=clipseg | ||
- git+https://github.com/invoke-ai/GFPGAN#egg=gfpgan | ||
- git+https://github.com/invoke-ai/[email protected].1#egg=pypatchmatch | ||
- git+https://github.com/invoke-ai/GFPGAN@basicsr-1.4.2#egg=gfpgan | ||
- -e git+https://github.com/invoke-ai/[email protected].4#egg=pypatchmatch | ||
- -e . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ channels: | |
- conda-forge | ||
- defaults | ||
dependencies: | ||
- python>=3.9 | ||
- python=3.9.* | ||
- pip=22.2.2 | ||
- numpy=1.23.3 | ||
- pip: | ||
|
@@ -44,5 +44,5 @@ dependencies: | |
- 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/[email protected]#egg=gfpgan | ||
- git+https://github.com/invoke-ai/[email protected].1#egg=pypatchmatch | ||
- -e git+https://github.com/invoke-ai/[email protected].4#egg=pypatchmatch | ||
- -e . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ channels: | |
- conda-forge | ||
- defaults | ||
dependencies: | ||
- python=3.10 | ||
- python=3.9.* | ||
- pip=22.2.2 | ||
- numpy=1.23.3 | ||
- 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/invoke-ai/clipseg.git@relaxed-python-requirement#egg=clipseg | ||
- git+https://github.com/invoke-ai/[email protected]#egg=gfpgan | ||
- git+https://github.com/invoke-ai/[email protected].1#egg=pypatchmatch | ||
- -e git+https://github.com/invoke-ai/[email protected].4#egg=pypatchmatch | ||
- -e . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,7 +59,7 @@ dependencies: | |
- 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/[email protected]#egg=gfpgan | ||
- git+https://github.com/invoke-ai/[email protected].1#egg=pypatchmatch | ||
- -e git+https://github.com/invoke-ai/[email protected].4#egg=pypatchmatch | ||
- -e . | ||
variables: | ||
PYTORCH_ENABLE_MPS_FALLBACK: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ channels: | |
- conda-forge | ||
- defaults | ||
dependencies: | ||
- python>=3.9 | ||
- python=3.10.* | ||
- pip=22.2.2 | ||
- numpy=1.23.3 | ||
- torchvision=0.13.1 | ||
|
@@ -43,6 +43,6 @@ dependencies: | |
- 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/invoke-ai/clipseg.git@relaxed-python-requirement#egg=clipseg | ||
- git+https://github.com/invoke-ai/GFPGAN#egg=gfpgan | ||
- git+https://github.com/invoke-ai/[email protected].1#egg=pypatchmatch | ||
- git+https://github.com/invoke-ai/GFPGAN@basicsr-1.4.1#egg=gfpgan | ||
- -e git+https://github.com/invoke-ai/[email protected].4#egg=pypatchmatch | ||
- -e . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,9 @@ torch-fidelity | |
torchmetrics | ||
transformers==4.21.* | ||
picklescan | ||
git+https://github.com/invoke-ai/[email protected]#egg=gfpgan ; platform_system == 'Windows' | ||
git+https://github.com/invoke-ai/[email protected]#egg=gfpgan ; platform_system != 'Windows' | ||
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/invoke-ai/clipseg.git@relaxed-python-requirement#egg=clipseg | ||
git+https://github.com/invoke-ai/[email protected].1#egg=pypatchmatch | ||
git+https://github.com/invoke-ai/[email protected].4#egg=pypatchmatch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
-r environments-and-requirements/requirements-base.txt | ||
|
||
git+https://github.com/invoke-ai/[email protected]#egg=gfpgan | ||
|
||
# Get hardware-appropriate torch/torchvision | ||
--extra-index-url https://download.pytorch.org/whl/rocm5.1.1 --trusted-host https://download.pytorch.org | ||
torch | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
--pre torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/nightly/cpu | ||
|
||
git+https://github.com/invoke-ai/[email protected]#egg=gfpgan | ||
|
||
-r environments-and-requirements/requirements-base.txt | ||
-e . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
-r environments-and-requirements/requirements-base.txt | ||
git+https://github.com/invoke-ai/[email protected]#egg=gfpgan | ||
-e . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
-r environments-and-requirements/requirements-base.txt | ||
git+https://github.com/invoke-ai/[email protected]#egg=gfpgan | ||
grpcio<1.51.0 | ||
protobuf==3.19.6 | ||
torch<1.13.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
-r environments-and-requirements/requirements-base.txt | ||
git+https://github.com/invoke-ai/[email protected]#egg=gfpgan | ||
# Get hardware-appropriate torch/torchvision | ||
--extra-index-url https://download.pytorch.org/whl/cu116 --trusted-host https://download.pytorch.org | ||
basicsr==1.4.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters