Coder Social home page Coder Social logo

stable-diffusion-api's Introduction

stable-diffusion-api

CLI and server for Stable Diffusion.

CLI and server for AUTOMATIC1111's Stable Diffusion WebUI.

This project is dead for now since I no longer have a need for a CLI tool. If a need for it arises I'll pick it back up.

Features

The goal is to separate the compute server running the WebUI from the client and enable abstraction of the WebUI's features to enable powerful integration into other projects.

Yeah.

  • CLI application.
  • HTTP API via Django server running on the same machine as the WebUI.
  • Python library (StableDiffusionAPI)

Usage

CLI

  1. Copy config.sample.yml to config.yml
  2. Run ./stable-diffusion.py

You can install the CLI application with ./stable-diffusion.py install. Make sure to add the path the app gives you to your PATH.

Python Library

Located in StableDiffusionAPI. The main file is api.py. It's really not that complicated.

import StableDiffusionAPI

api = StableDiffusionAPI.API(config)
r = api.create_hypernetwork('poo poo pee pee')
print(r)

stable-diffusion-api's People

Contributors

cyberes avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

stable-diffusion-api's Issues

how to send prompt / option params through CLI or postman to api .??

1- thanks for creating this, trying to setup, it seems working but surely a bit confused for Newby like me.

(sd-web) user@dell:~/Data/github/stable-diffusion/stable-diffusion-API$ ./stable-diffusion.py --config '/home/user/.stablediffusion/api/config.yml' info
/home/user/Data/github/stable-diffusion/stable-diffusion-API/./stable-diffusion.py:7: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
  from distutils.dir_util import copy_tree
=== Stable Diffusion API ===
For AUTOMATIC1111's stable-diffusion-webui

Target: webui
Target URL: localhost:7860
Installed to: /home/user/Data/github/stable-diffusion/stable-diffusion-API

any ideas / psudo steps will help. huge thanks again, haseeb.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.