Local API server for Stable Diffusion inference
Top 78.9% on sourcepulse
This project provides a local REST API server for Stable Diffusion, enabling programmatic image generation and integration with tools like the Stable Diffusion Photoshop plugin. It targets users who want to run Stable Diffusion inference locally, offering flexibility for custom fine-tuned models and direct API access for various applications.
How It Works
The server leverages the Hugging Face diffusers
library to load and run Stable Diffusion models. It supports automatic downloading of weights from Hugging Face and can load custom fine-tuned models in the diffusers
format. The architecture is designed for ease of use, with a straightforward API for text-to-image, image-to-image, and masking operations, all accessible via standard HTTP requests.
Quick Start & Requirements
conda env create -f environment.yaml
or environment-m1.yaml
for M1 Macs).config.json
.python3 server.py
Highlighted Details
diffusers
format.txt2img
, img2img
, and masking
operations.config.json
.Maintenance & Community
No specific contributors, sponsorships, or community links (Discord/Slack) are mentioned in the README.
Licensing & Compatibility
The README does not explicitly state a license. Compatibility for commercial use or closed-source linking is not specified.
Limitations & Caveats
M1 Mac support via MPS is experimental and may require nightly PyTorch builds or specific environment variables. Direct loading of .ckpt
checkpoint files is not supported, requiring conversion to the diffusers
format. Performance is best on a dedicated Linux machine.
2 years ago
1 day