赞
踩
最近的AI绘画可谓是特别火呀,这一期带大家使用容器搭建Stable-Diffusion
sudo apt update && sudo apt install -y docker.io
sudo yum makecache && sudo yum install -y podman
docker pull debian
podman pull debian
docker run -p 1234:1234 -itd --name stable debian
podman run -p 1234:1234 -itd --name stable debian
- docker exec -it stable bash
- podman exec -it stable bash
- sudo apt update && sudo apt install -y python3 python3-pip python3-venv git \
- && pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple \
- && pip install torch \
- && pip install torchvision \
- && pip install gfpgan \
- && pip install clip
- && pip install opencv-python-headless
- && git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui \
docker/podman cp models stable:/stable-diffusion-webui-master/models/
python3 launch.py --port 1234 --listen
- export COMMANDLINE_ARGS=--skip-torch-cuda-test
- python3 launch.py --no-half --port 1234 --listen
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。