Stable Diffusion v1.5,HF 月下載 161 萬次,0.86B 參數,512×512 輸出,最廣泛的社群 LoRA/ControlNet 支援,4 GB VRAM 可運行。
節點式工作流編輯器,支援 LoRA、ControlNet 和進階管線。
# 1. Install ComfyUI git clone https://github.com/comfyanonymous/ComfyUI cd ComfyUI && pip install -r requirements.txt # 2. Download model to models/checkpoints/ # 3. Run: python main.py
新手友好的 Web UI,支援大量擴充插件。
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui cd stable-diffusion-webui # Place model in models/Stable-diffusion/ bash webui.sh
適合自訂管線和程式化圖像生成的 Python API。
pip install diffusers transformers accelerate
python -c "
from diffusers import StableDiffusionPipeline
pipe = StableDiffusionPipeline.from_pretrained('https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5')
pipe = pipe.to('cuda')
image = pipe('a photo of a cat').images[0]
image.save('output.png')"Stable Diffusion v1.5 是一個開源圖像生成,擁有 860M 參數,採用 CreativeML OpenRAIL-M 授權。可使用 ComfyUI、Automatic1111、Diffusers 進行部署。適用場景包括:適合在個人電腦或資源有限的設備上,進行高品質的文字到圖像生成。、適用於需要大量客製化圖像,並利用LoRA/ControlNet等擴充功能的藝術創作與設計工作。。核心優勢:圖像生成、社群生態豐富、低VRAM需求、廣泛部署、輕量高效。 可在本地硬體上自行部署,完全保護隱私,無需 API 金鑰。
分享你的使用體驗,幫助其他人了解這個模型