forked from extern/easydiffusion
Changes to allow rolling back from the upcoming sdkit-based system
This commit is contained in:
parent
72b3598687
commit
8cedeb349d
@ -101,6 +101,19 @@ if NOT DEFINED test_sd2 set test_sd2=N
|
||||
@echo conda_sd_env_created >> ..\scripts\install_status.txt
|
||||
)
|
||||
|
||||
@rem allow rolling back the sdkit-based changes
|
||||
if exist "src-old" (
|
||||
if not exist "src" (
|
||||
rename "src-old" "src"
|
||||
|
||||
if exist "ldm-old" (
|
||||
rd /s /q "ldm-old"
|
||||
)
|
||||
|
||||
call pip uninstall -y sdkit stable-diffusion-sdkit
|
||||
)
|
||||
)
|
||||
|
||||
set PATH=C:\Windows\System32;%PATH%
|
||||
|
||||
@>nul findstr /m "conda_sd_gfpgan_deps_installed" ..\scripts\install_status.txt
|
||||
|
@ -87,6 +87,15 @@ else
|
||||
echo conda_sd_env_created >> ../scripts/install_status.txt
|
||||
fi
|
||||
|
||||
# allow rolling back the sdkit-based changes
|
||||
if [ -e "src-old" ] && [ ! -e "src" ]; then
|
||||
mv src-old src
|
||||
|
||||
if [ -e "ldm-old" ]; then rm -r ldm-old; fi
|
||||
|
||||
pip uninstall -y sdkit stable-diffusion-sdkit
|
||||
fi
|
||||
|
||||
if [ `grep -c conda_sd_gfpgan_deps_installed ../scripts/install_status.txt` -gt "0" ]; then
|
||||
echo "Packages necessary for GFPGAN (Face Correction) were already installed"
|
||||
else
|
||||
|
@ -25,7 +25,7 @@
|
||||
<div id="logo">
|
||||
<h1>
|
||||
Stable Diffusion UI
|
||||
<small>v2.4.21 <span id="updateBranchLabel"></span></small>
|
||||
<small>v2.4.22 <span id="updateBranchLabel"></span></small>
|
||||
</h1>
|
||||
</div>
|
||||
<div id="server-status">
|
||||
|
Loading…
Reference in New Issue
Block a user