Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 842 Bytes

SD2.md

File metadata and controls

42 lines (27 loc) · 842 Bytes

Stable Diffusion 2 support

this is an experimental version

dfserver Configuration

Edit config.toml of dferver, Add a new bindkey to the sd14 qeueue:

Example: wf for waifu diffusion, sd2 for Stable Diffusion 2, all for Stable Diffusion 1.4

[QUEUE."ai.sd14"]
name = "ai.sd14"
bindkeys = ["all","wf", "sd2"]

Then, Restart dfserver

SD2 Worker Install

Install the main branch of diffusers, commit: 6b02323a602a66841729c3a5d60844b24aa81ff2

or v0.9.0

pip install --upgrade git+https://github.com/huggingface/diffusers.git transformers accelerate scipy

Copy sd20worker.py and config to the GPU server

cp configs/sd20_config.ini.sample configs/sd20mega_config.ini 

Run the sd20 ai worker

python worker.py sd20

Using in discord bot

!dream a cat -M sd2