diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-09-11 15:48:36 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-09-11 15:48:36 +0000 |
commit | f194457229e4537912467bc60ac3a873f473a63c (patch) | |
tree | 93e9c445a79bb0f2e88e4058734594f318f1151c /webui.bat | |
parent | 13008bab90305144591e0b2e233214a8b3415bba (diff) | |
download | stable-diffusion-webui-gfx803-f194457229e4537912467bc60ac3a873f473a63c.tar.gz stable-diffusion-webui-gfx803-f194457229e4537912467bc60ac3a873f473a63c.tar.bz2 stable-diffusion-webui-gfx803-f194457229e4537912467bc60ac3a873f473a63c.zip |
CLIP interrogator
Diffstat (limited to 'webui.bat')
-rw-r--r-- | webui.bat | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -85,7 +85,7 @@ if %ERRORLEVEL% == 0 goto :install_reqs goto :show_stdout_stderr
:install_reqs
-%PYTHON% -c "import omegaconf; import fonts" >tmp/stdout.txt 2>tmp/stderr.txt
+%PYTHON% -c "import omegaconf; import fonts; import timm" >tmp/stdout.txt 2>tmp/stderr.txt
if %ERRORLEVEL% == 0 goto :make_dirs
echo Installing requirements...
%PYTHON% -m pip install -r %REQS_FILE% --prefer-binary >tmp/stdout.txt 2>tmp/stderr.txt
@@ -117,12 +117,19 @@ goto :show_stdout_stderr :install_codeformer_reqs
%PYTHON% -c "import lpips" >tmp/stdout.txt 2>tmp/stderr.txt
-if %ERRORLEVEL% == 0 goto :check_model
+if %ERRORLEVEL% == 0 goto :clone_blip
echo Installing requirements for CodeFormer...
%PYTHON% -m pip install -r repositories\CodeFormer\requirements.txt --prefer-binary >tmp/stdout.txt 2>tmp/stderr.txt
-if %ERRORLEVEL% == 0 goto :check_model
+if %ERRORLEVEL% == 0 goto :clone_blip
goto :show_stdout_stderr
+:clone_blip
+if exist repositories\BLIP goto :check_model
+echo Cloning BLIP repository...
+%GIT% clone https://github.com/salesforce/BLIP.git repositories\BLIP >tmp/stdout.txt 2>tmp/stderr.txt
+if %ERRORLEVEL% NEQ 0 goto :show_stdout_stderr
+%GIT% -C repositories/BLIP checkout 48211a1594f1321b00f14c9f7a5b4813144b2fb9 >tmp/stdout.txt 2>tmp/stderr.txt
+if %ERRORLEVEL% NEQ 0 goto :show_stdout_stderr
:check_model
dir model.ckpt >tmp/stdout.txt 2>tmp/stderr.txt
|