From 852875b44063e73cc481c52d9f003d37cee228a9 Mon Sep 17 00:00:00 2001 From: cmdr2 Date: Mon, 12 Sep 2022 23:42:48 +0530 Subject: [PATCH] Try force installing basicsr 1.4.2 --- scripts/on_sd_start.bat | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/on_sd_start.bat b/scripts/on_sd_start.bat index 91ce0dcc..14e68078 100644 --- a/scripts/on_sd_start.bat +++ b/scripts/on_sd_start.bat @@ -80,6 +80,12 @@ exit /b ) + @call pip install basicsr=1.4.2 || ( + @echo. & echo "Error installing the basicsr package necessary for GFPGAN (Face Correction). Sorry about that, please try to:" & echo " 1. Run this installer again." & echo " 2. If that doesn't fix it, please try the common troubleshooting steps at https://github.com/cmdr2/stable-diffusion-ui/blob/main/Troubleshooting.md" & echo " 3. If those steps don't help, please copy *all* the error messages in this window, and ask the community at https://discord.com/invite/u9yhsFmEkB" & echo " 4. If that doesn't solve the problem, please file an issue at https://github.com/cmdr2/stable-diffusion-ui/issues" & echo "Thanks!" & echo. + pause + exit /b + ) + for /f "tokens=*" %%a in ('python -c "from gfpgan import GFPGANer; print(42)"') do if "%%a" NEQ "42" ( @echo. & echo "Dependency test failed! Error installing the packages necessary for GFPGAN (Face Correction). Sorry about that, please try to:" & echo " 1. Run this installer again." & echo " 2. If that doesn't fix it, please try the common troubleshooting steps at https://github.com/cmdr2/stable-diffusion-ui/blob/main/Troubleshooting.md" & echo " 3. If those steps don't help, please copy *all* the error messages in this window, and ask the community at https://discord.com/invite/u9yhsFmEkB" & echo " 4. If that doesn't solve the problem, please file an issue at https://github.com/cmdr2/stable-diffusion-ui/issues" & echo "Thanks!" & echo. pause