Upgrade stable-diffusion-sdkit during startup

This commit is contained in:
cmdr2 2022-12-28 19:19:53 +05:30
parent 91274a4df8
commit 27d69e2ac3
2 changed files with 11 additions and 1 deletions

View File

@ -103,7 +103,13 @@ if "%ERRORLEVEL%" EQU "0" (
)
)
python -c "from importlib.metadata import version; print('sdkit version:', version('sdkit'))"
call python -c "from importlib.metadata import version; print('sdkit version:', version('sdkit'))"
@rem upgrade stable-diffusion-sdkit
call pip install --upgrade stable-diffusion-sdkit -q || (
echo "Error updating stable-diffusion-sdkit"
)
call python -c "from importlib.metadata import version; print('stable-diffusion version:', version('stable-diffusion-sdkit'))"
@rem install rich
call python ..\scripts\check_modules.py rich

View File

@ -92,6 +92,10 @@ fi
python -c "from importlib.metadata import version; print('sdkit version:', version('sdkit'))"
# upgrade stable-diffusion-sdkit
pip install --upgrade stable-diffusion-sdkit -q
python -c "from importlib.metadata import version; print('stable-diffusion version:', version('stable-diffusion-sdkit'))"
# install rich
if python ../scripts/check_modules.py rich; then
echo "rich has already been installed."