Skip to main content

StableFusion

Project description

StableFusion

A Web ui for Stable Diffusion Models.

< under development, request features using issues, prs not accepted atm >

Open In Colab

image image

If something doesnt work as expected, or if you need some features which are not available, then create request using github issues

Features available in the app:

  • text to image
  • image to image
  • instruct pix2pix
  • textual inversion
  • image info
  • stable diffusion upscaler
  • gfpgan
  • clip interrogator
  • Convert ckpt file to diffusers
  • Add your own diffusers model
  • more coming soon!

Installation

To install bleeding edge version of StableFusion, clone the repo and install it using pip.

git clone https://github.com/NeuralRealm/StableFusion
cd StableFusion
pip install -e .

Installation using pip:

pip install stablefusion

Usage

Web App

To run the web app, run the following command:

For Local Host

stablefusion app

or

For Public Shareable Link

stablefusion app --port 10000 --ngrok_key YourNgrokAuthtoken --share

All CLI Options for running the app:

 stablefusion app --help
usage: stablefusion <command> [<args>] app [-h] [--output OUTPUT] [--share] [--port PORT] [--host HOST]
                                        [--device DEVICE] [--ngrok_key NGROK_KEY] Run stablefusion app

optional arguments:
  -h, --help            show this help message and exit
  --output OUTPUT       Output path is optional, but if provided, all generations will automatically be saved to this
                        path.
  --share               Share the app
  --port PORT           Port to run the app on
  --host HOST           Host to run the app on
  --device DEVICE       Device to use, e.g. cpu, cuda, cuda:0, mps (for m1 mac) etc.
  --ngrok_key NGROK_KEY
                        Ngrok key to use for sharing the app. Only required if you want to share the app

Using private models from huggingface hub

If you want to use private models from huggingface hub, then you need to login using huggingface-cli login command.

Note: You can also save your generations directly to huggingface hub if your output path points to a huggingface hub dataset repo and you have access to push to that repository. Thus, you will end up saving a lot of disk space.

Acknowledgements

I would like to express my gratitude to Abhishek Thakur for sharing his code for the diffuzers package. This code formed the basis of the implementation used in this project, and I am grateful for his contributions to the open source community.

Contributing

StableFusion is an open-source project, and we welcome contributions from the community. Whether you're a developer, designer, or user, there are many ways you can help make this project better. Here are a few ways you can get involved:

  • Report issues: If you find a bug or have a feature request, please open an issue on our GitHub repository. We appreciate detailed bug reports and constructive feedback.
  • Submit pull requests: If you're interested in contributing code, we welcome pull requests for bug fixes, new features, and documentation improvements.
  • Spread the word: If you enjoy using StableFusion, please help us spread the word by sharing it with your friends, colleagues, and social media networks. We appreciate any support you can give us!

We believe that open-source software is the future of technology, and we're excited to have you join us in making StableFusion a success. Thank you for your support!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stablefusion-0.0.4.dev0.tar.gz (882.8 kB view details)

Uploaded Source

Built Distribution

stablefusion-0.0.4.dev0-py3-none-any.whl (919.2 kB view details)

Uploaded Python 3

File details

Details for the file stablefusion-0.0.4.dev0.tar.gz.

File metadata

  • Download URL: stablefusion-0.0.4.dev0.tar.gz
  • Upload date:
  • Size: 882.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for stablefusion-0.0.4.dev0.tar.gz
Algorithm Hash digest
SHA256 0bf6400934ec50e70c189abe4d70093eab8214a15250e9a29c208740d4a53a9f
MD5 098d027d24020dedc01ef6005d87ce74
BLAKE2b-256 5bcebbf3a7eae34e19df22a102265b3b8e1d8c79abc93452846d6bacadf7d73c

See more details on using hashes here.

File details

Details for the file stablefusion-0.0.4.dev0-py3-none-any.whl.

File metadata

File hashes

Hashes for stablefusion-0.0.4.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 6ef925b14625d6f05f418c5ef90efeac08cda2096154377d7b4c6084f814a4d7
MD5 91de1198257e4385650e4e9765731a78
BLAKE2b-256 7d6e563fb37d13cd4dbd42a0cc6eb6c6e4cef2f7b55d9e9a437e2f853ebe2a53

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page