aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2022-09-05 10:41:01 +0300
committerAUTOMATIC <16777216c@gmail.com>2022-09-05 10:41:01 +0300
commit811725d3aaba18f2b2479baf98191fd35608b25b (patch)
treede915613f9c259049324081b64d87b9797849466
parente45e1862adfcc589135eec3c78ad981ff81c84a4 (diff)
Update webui.py to instruct python to install binary packages; this should prevent errors people are getting with lacking C++ compilers
-rw-r--r--README.md2
-rw-r--r--script.js4
-rw-r--r--webui.bat12
3 files changed, 11 insertions, 7 deletions
diff --git a/README.md b/README.md
index 3bf90551..dc7fb6ec 100644
--- a/README.md
+++ b/README.md
@@ -146,7 +146,7 @@ Running on local URL: http://127.0.0.1:7860/
Open the URL in browser, and you are good to go.
-### What options to use for low VRAM videocardsd?
+### What options to use for low VRAM videocards?
- If you have 4GB VRAM and want to make 512x512 (or maybe up to 640x640) images, use `--medvram`.
- If you have 4GB VRAM and want to make 512x512 images, but you get an out of memory error with `--medvram`, use `--opt-split-attention` instead.
- If you have 4GB VRAM and want to make 512x512 images, and you still get an out of memory error, use `--lowvram --always-batch-cond-uncond` instead.
diff --git a/script.js b/script.js
index e200e713..eb85c226 100644
--- a/script.js
+++ b/script.js
@@ -40,6 +40,10 @@ titles = {
"Custom code": "Run python code. Advanced user only. Must run program with --allow-code for this to work",
"Prompt S/R": "Separate a list of words with commas, and the first word will be used as a keyword: script will search for this word in the prompt, and replace it with others",
+
+ "Tiling": "Produce an image that can be tiled.",
+ "Tile overlap": "For SD upscale, how much overlap in pixels should there be between tiles. Tils overlap so that when they are merged back into one oicture, there is no clearly visible seam.",
+
}
function gradioApp(){
diff --git a/webui.bat b/webui.bat
index cc2191de..90075e7c 100644
--- a/webui.bat
+++ b/webui.bat
@@ -61,10 +61,10 @@ echo Torch is not able to use GPU
goto :show_stdout_stderr
:install_sd_reqs
-%PYTHON% -c "import transformers" >tmp/stdout.txt 2>tmp/stderr.txt
+%PYTHON% -c "import transformers; import wheel" >tmp/stdout.txt 2>tmp/stderr.txt
if %ERRORLEVEL% == 0 goto :install_k_diff
echo Installing SD requirements...
-%PYTHON% -m pip install transformers==4.19.2 diffusers invisible-watermark >tmp/stdout.txt 2>tmp/stderr.txt
+%PYTHON% -m pip install wheel transformers==4.19.2 diffusers invisible-watermark --prefer-binary >tmp/stdout.txt 2>tmp/stderr.txt
if %ERRORLEVEL% == 0 goto :install_k_diff
goto :show_stdout_stderr
@@ -72,7 +72,7 @@ goto :show_stdout_stderr
%PYTHON% -c "import k_diffusion.sampling" >tmp/stdout.txt 2>tmp/stderr.txt
if %ERRORLEVEL% == 0 goto :install_GFPGAN
echo Installing K-Diffusion...
-%PYTHON% -m pip install git+https://github.com/crowsonkb/k-diffusion.git >tmp/stdout.txt 2>tmp/stderr.txt
+%PYTHON% -m pip install git+https://github.com/crowsonkb/k-diffusion.git --prefer-binary --only-binary=psutil >tmp/stdout.txt 2>tmp/stderr.txt
if %ERRORLEVEL% == 0 goto :install_GFPGAN
goto :show_stdout_stderr
@@ -81,7 +81,7 @@ goto :show_stdout_stderr
%PYTHON% -c "import gfpgan" >tmp/stdout.txt 2>tmp/stderr.txt
if %ERRORLEVEL% == 0 goto :install_reqs
echo Installing GFPGAN
-%PYTHON% -m pip install git+https://github.com/TencentARC/GFPGAN.git >tmp/stdout.txt 2>tmp/stderr.txt
+%PYTHON% -m pip install git+https://github.com/TencentARC/GFPGAN.git --prefer-binary >tmp/stdout.txt 2>tmp/stderr.txt
if %ERRORLEVEL% == 0 goto :install_reqs
goto :show_stdout_stderr
@@ -89,11 +89,11 @@ goto :show_stdout_stderr
%PYTHON% -c "import omegaconf" >tmp/stdout.txt 2>tmp/stderr.txt
if %ERRORLEVEL% == 0 goto :make_dirs
echo Installing requirements...
-%PYTHON% -m pip install -r %REQS_FILE% >tmp/stdout.txt 2>tmp/stderr.txt
+%PYTHON% -m pip install -r %REQS_FILE% --prefer-binary >tmp/stdout.txt 2>tmp/stderr.txt
if %ERRORLEVEL% == 0 goto :update_numpy
goto :show_stdout_stderr
:update_numpy
-%PYTHON% -m pip install -U numpy >tmp/stdout.txt 2>tmp/stderr.txt
+%PYTHON% -m pip install -U numpy --prefer-binary >tmp/stdout.txt 2>tmp/stderr.txt
:make_dirs
mkdir repositories 2>NUL