2022-09-07 01:50:14 +03:00
|
|
|
#!/bin/bash
|
|
|
|
# It basically resets you to the beginning except for your output directory.
|
|
|
|
# How to:
|
|
|
|
# cd stable-diffusion
|
|
|
|
# ./docker-reset.sh
|
|
|
|
# Then:
|
|
|
|
# docker-compose up
|
|
|
|
|
|
|
|
echo $(pwd)
|
|
|
|
read -p "Is the directory above correct to run reset on? (y/n) " -n 1 DIRCONFIRM
|
|
|
|
if [[ $DIRCONFIRM =~ ^[Yy]$ ]]; then
|
|
|
|
docker compose down
|
2022-09-11 16:58:33 +03:00
|
|
|
docker image rm stable-diffusion-webui_stable-diffusion:latest
|
|
|
|
docker volume rm stable-diffusion-webui_conda_env
|
|
|
|
docker volume rm stable-diffusion-webui_root_profile
|
2022-09-07 01:50:14 +03:00
|
|
|
echo "Remove ./src"
|
|
|
|
sudo rm -rf src
|
2022-09-11 16:58:33 +03:00
|
|
|
sudo rm -rf gfpgan
|
|
|
|
sudo rm -rf sd_webui.egg-info
|
2022-09-07 01:50:14 +03:00
|
|
|
sudo rm .env_updated
|
|
|
|
else
|
|
|
|
echo "Exited without resetting"
|
|
|
|
fi
|