From 811725d3aaba18f2b2479baf98191fd35608b25b Mon Sep 17 00:00:00 2001 From: AUTOMATIC <16777216c@gmail.com> Date: Mon, 5 Sep 2022 10:41:01 +0300 Subject: [PATCH] Update webui.py to instruct python to install binary packages; this should prevent errors people are getting with lacking C++ compilers --- README.md | 2 +- script.js | 4 ++++ webui.bat | 12 ++++++------ 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 3bf90551a..dc7fb6ecc 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 e200e7139..eb85c2261 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 cc2191de1..90075e7c5 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