mirror of
https://github.com/sd-webui/stable-diffusion-webui.git
synced 2024-12-14 23:02:00 +03:00
24 lines
684 B
Bash
Executable File
24 lines
684 B
Bash
Executable File
#!/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
|
|
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
|
|
echo "Remove ./src"
|
|
sudo rm -rf src
|
|
sudo rm -rf gfpgan
|
|
sudo rm -rf sd_webui.egg-info
|
|
sudo rm .env_updated
|
|
else
|
|
echo "Exited without resetting"
|
|
fi
|