Docker搭建Stable Diffusion Webui

环境要求 Docker及docker-compose docker-compose安装命令: 1 apt install docker-compose-plugin 搭建 1 2 3 4 5 6 7 git clone https://github.com/AbdBarho/stable-diffusion-webui-docker.git cd stable-diffusion-webui-docker docker compose --profile download up --build # 下载模型文件 docker compose --profile [ui] up --build # 启动服务 ui选择项 invoke: One of the earliest forks, stunning UI Repo

iterm2+xquartz x11转发

安装xquartz https://www.xquartz.org/ 在linux服务器端打开X11转发 1 sudo vim /etc/ssh/sshd_config 配置转发参数为yes 1 2 X11Forwarding yes X11DisplayOffset 10 然后重启ssh服务 1 service ssh restart 在Mac本地设置 1 sudo vim /etc/ssh/ssh_config 配置转发参数为yes 1 2 3 4 ForwardAgent yes ForwardX11 yes ForwardX11Trusted yes XAuthLocation /opt/X11/bin/xauth 使用 ssh -X username@host ssh

普通用户使用root用户安装的anaconda

首先,root用户安装anaconda的时候,需要安装在普通用户可以访问的目录下,比如/usr/local、/opt、/home之类的 其次,普通用户登陆后,需要执行一下conda init 使conda的路径等