1 Star 4 Fork 0

hanmochen/stable-diffusion

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
docker-reset.sh 651 Bytes
一键复制 编辑 原始数据 按行查看 历史
oc013 提交于 2022-08-28 04:45 . Fix typos in dockerfiles
#!/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_stable-diffusion:latest
docker volume rm stable-diffusion_conda_env
docker volume rm stable-diffusion_root_profile
echo "Remove ./src"
sudo rm -rf src
sudo rm -rf latent_diffusion.egg-info
sudo rm .env_updated
else
echo "Exited without resetting"
fi
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/hanmochen/stable-diffusion.git
git@gitee.com:hanmochen/stable-diffusion.git
hanmochen
stable-diffusion
stable-diffusion
main

搜索帮助