项目简介
提供基于 Web 的全面用户界面,用于使用稳定扩散模型生成图像。支持文本转图像、图像转图像、修复、放大以及提示编辑、注意力控制和自定义脚本等众多高级功能。
README 预览
# Stable Diffusion web UI\r\nA web interface for Stable Diffusion, implemented using Gradio library.\r\n\r\n\r\n\r\n## Features\r\n[Detailed feature showcase with images](https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Features):\r\n- Original txt2img and img2img modes\r\n- One click install and run script (but you still must install python and git)\r\n- Outpainting\r\n- Inpainting\r\n- Color Sketch\r\n- Prompt Matrix\r\n- Stable Diffusion Upscale\r\n- Attention, specify parts of text that the model should pay more attention to\r\n - a man in a `((tuxedo))` - will pay more attention to tuxedo\r\n - a man in a `(tuxedo:1.21)` - alternative syntax\r\n - select text and press `Ctrl+Up` or `Ctrl+Down` (or `Command+Up` or `Command+Down` if you're on a MacOS) to automatically adjust attention to selected text (code contributed by anonymous user)\r\n- Loopback, run img2img processing multiple times\r\n- X/Y/Z plot, a way to draw a 3 dimensional plot of images with different parameters\r\n- Textual Inversion\r\n - have as many embeddings as you want and use any names you like for them\r\n - use multiple embeddings with different numbers of vectors per token\r\n - works with half precision floating point numbers\r\n - train embeddings on 8GB (also reports of 6GB working)\r\n- Extras tab with:\r\n - GFPGAN, neural network that fixes faces\r\n - CodeFormer, face restoration tool as an alternative to GFPGAN\r\n - RealESRGAN, neural network upscaler\r\n - ESRGAN, neural network upscaler with a lot of third party models\r\n - SwinIR and Swin2SR ([see here](https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/2092)), neural network upscalers\r\n - LDSR, Latent diffusion super resolution upscaling\r\n- Resizing aspect ratio options\r\n- Sampling method selection\r\n - Adjust sampler eta values (noise multiplier)\r\n - More advanced noise setting options\r\n- Interrupt processing at any time\r\n- 4GB video card suppor
常见问题 (2)
故障排除在macOS上启动Stable Diffusion webui时如何修复'RuntimeError: Couldn't install clip'错误?
故障排除
在macOS上启动Stable Diffusion webui时如何修复'RuntimeError: Couldn't install clip'错误?此错误是由于 pip 无法从 URL 安装 openai/CLIP 依赖项导致的。解决方法:
1. 手动克隆 CLIP 仓库:git clone https://github.com/openai/CLIP.git。
2. 使用虚拟环境的 pip 安装:./stable-diffusion-webui/venv/bin/pip install ./CLIP。
3. 再次运行 ./webui.sh;由于 CLIP 已存在,安装程序将跳过它。
故障排除如何在使用PyTorch ROCm 6.0的RX 7600 XT上修复HSA_STATUS_ERROR_INVALID_ISA?
故障排除
如何在使用PyTorch ROCm 6.0的RX 7600 XT上修复HSA_STATUS_ERROR_INVALID_ISA?降级到 PyTorch 2.2.0 与 ROCm 5.7,并设置 HSA_OVERRIDE_GFX_VERSION=11.0.0。ROCm 6.0 对 gfx1102(RX 7600 系列)缺乏稳定支持;在修复前请使用 5.7。