Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

About

Simple API to work with Stable Diffusion models

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /