Skip to content

Example Stable Diffusion Web Application based on FastAPI, pyTORCH and Gradio

License

Notifications You must be signed in to change notification settings

mcaimi/sd-webapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stable Diffusion Web App

This is a Stable-Diffusion Web Application written using Gradio and FastAPI. It exposes a way to perform inference with a Stable Diffusion compatible model in the backend.

gradio_app

Run Locally

The application expects to find model checkpoints files in the models/stable-diffusion folder.

# development mode
$ fastapi dev

# production mode
$ fastapi run

It tries to use any discovered GPU that is supported by pytorch, but it can run on CPU (very slowly)

Tested:

  • Apple Metal Performance Shaders
  • NVIDIA CUDA
  • AMD CPU

About

Example Stable Diffusion Web Application based on FastAPI, pyTORCH and Gradio

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published