Nothing Special   »   [go: up one dir, main page]

Skip to content

frolleks/stable-diffusion-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stable Diffusion API

A simple API to work with Stable Diffusion models.

Setup

Prerequisites:

  • Python (3.10)
  • PyTorch (2.0)

After you installed Python, install PyTorch by running:

pip install torch torchvision torchaudio

If you have a CUDA-capable GPU, install PyTorch with CUDA:

pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118

Then, you install the dependencies:

pip install -r requirements.txt

To run the API, run:

cd sd-api
uvicorn api:app

Releases

No releases published

Packages

No packages published

Languages