Top Menu

如何在windows上安装stable-diffusion-webui(AUTOMATIC1111)

参考

  • https://github.com/AUTOMATIC1111/stable-diffusion-webui
  • https://stable-diffusion-art.com/install-windows/

步骤

  • 步骤 1: 安装 python
  • 步骤 2: 安装 git
  • 步骤 3: Clone web-ui
  • 步骤 4: 下载 model
  • 步骤 5: 运行 webui

步骤 1: 安装 python

python-3.10.6-amd64.exe

https://www.python.org/ftp/python/3.10.6/python-3.10.6-amd64.exe

安装时勾选添加到path

步骤 2: 安装 git

Git-2.40.1-64-bit.exe

https://github.com/git-for-windows/git/releases/download/v2.40.1.windows.1/Git-2.40.1-64-bit.exe

步骤 3: Clone web-ui

运行cmd

Clone web-ui

cd %userprofile%

git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git

Continue Reading 0

远程服务器内存溢出

原因

  • 远程服务器内存溢出

引起

  • 远程服务器硬盘读写占满
  • 远程服务器CPU使用率占满
  • 远程服务器处于无响应状态

连锁反应

  • 主服务器内存溢出
  • 主服务器自动kill进程导致关键服务下线

一开始以为只是主服务器的问题,清空僵尸进程后短暂恢复上线,但是隔一段时间又被僵尸进程占满内存,导致服务进程又被强制kill。

Continue Reading 0

如何不重启服务更新traefik的tls证书

目前免费证书一般每隔90天都需要重新签发,但是直接替换证书后traefik没办法自动加载新证书,重启traefik又会中断不使用tls的服务。

前提

  • 使用dynamic配置,即在docker-compose中设置command
    – “–providers.file.directory=/etc/traefik/dynamic”
    – “–providers.file.watch=true”

方法

  • 打开dynamic_conf.yml动态配置文件
  • 将tls部分整个注释掉

# tls: # stores: # default: # defaultCertificate: # certFile: /etc/traefik/dynamic/cert/certificate.crt # keyFile: /etc/traefik/dynamic/cert/private.key # certificates: # - certFile: /etc/traefik/dynamic/cert/certificate.crt # keyFile: /etc/traefik/dynamic/cert/private.key # options: # foo: # minVersion: VersionTLS12 # cipherSuites: # - TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 # - TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256 # - TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 # - TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 # - TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256

Continue Reading 0

Powered by WordPress. Designed by WooThemes