Closed kyakuno closed 1 year ago
M2 Macでの速度 512x512 5steps
構成 | BLAS | MPS |
---|---|---|
従来(3モデル構成) | 78106ms | 40097ms |
PR(1モデル構成) | 71750ms | 28473ms |
実行方法
python3 stable-diffusion-txt2img.py --steps 5 --sampler DDIM --benchmark --legacy
python3 stable-diffusion-txt2img.py --steps 5 --sampler DDIM --benchmark
BasilMixの1モデルの出力
python3 stable-diffusion-txt2img.py --sd basil_mix --vae vae-ft-mse --sampler "DPM++ 2M Kerras" -i "masterpiece, best quality, ultra detailed, sketch, oil painting, 1 girl has silver long hair, eyelashes, jewelry eyes, twinklee eyes, glowing eyes, smile, office lady, tight skirt, looking at viewer, outdoor, street, night" --n_prompt "worst quality, low quality, bad anatomy, bad hands, missing arms, text error, missing fingers, jpeg artifacts, long neck, signature, watermark, blurry, fisheye lens, animal, deformed mutated disfigured, mutated hands, missing hands, extra hands, liquid hands, poorly drawn hands, mutated fingers, bad fingers, extra fingers, liquid fingers, poorly drawn fingers, bad legs, missing legs, extra legs, bad arms, extra arms, long torso, thick thighs, partial head, bad face, partial face, bad eyebrows" --steps 20
--onnx_clipでCLIPも一緒に動かすとメモリ不足か出力異常になるのでCLIPはCPUで動かす。
3モデルに分割されていたStableDiffusionのdiffusionを1モデルでエクスポートするPRです。
1187