Backend changes to support stopping a task mid-way. Uses a custom patch for the stable-diffusion codebase, to make it call a callback for DDIM

This commit is contained in:
cmdr2
2022-09-13 19:59:41 +05:30
parent 9ec2010ac2
commit e59c66ae26
5 changed files with 88 additions and 7 deletions

View File

@ -18,6 +18,8 @@ if [ -e "scripts/install_status.txt" ] && [ `grep -c sd_git_cloned scripts/insta
git pull
git checkout d154155d4c0b43e13ec1f00eb72b7ff9d522fcf9
git apply ../ui/sd_internal/ddim_callback.patch
cd ..
else
printf "\n\nDownloading Stable Diffusion..\n\n"
@ -32,6 +34,9 @@ else
cd stable-diffusion
git checkout d154155d4c0b43e13ec1f00eb72b7ff9d522fcf9
git apply ../ui/sd_internal/ddim_callback.patch
cd ..
fi