Skip to content

AVsync-LIVE/WebDiffusion

Repository files navigation

WebDiffusion

Generate batches of images in your browser with Stable Diffusion - private, free, and no installation required.

Try it out

image

Please ensure you have a GPU with 8GB VRAM (or an M1/M2 Mac), and Chrome or Edge version 113 or higher.

WebDiffusion is a modified version of mlc-ai/web-stable-diffusion that comes with all the required files. You don't need to install Python, any pip dependencies, or execute build commands. I've eliminated all superfluous code, fixed critical bugs which made the original web-stable-diffusion project unusable, and added numerous quality-of-life features.

Features

  • 🖼️ Generate images in batches of unlimited size
  • ⚡ Real-time diffusion preview (so cool!)
  • 💾 Persist all of your generated images using IndexedDB
  • 📲 Installable and usable offline as a PWA
  • 📥 Download button available for saving files (utilizes prompt for the file name)
  • 🌐 Entirely static files, making it easy to host for free

Current Limitations

  • All generated images are 512x512
  • The only way to cancel generation is refreshing the page

Usage

  1. Open the WebDiffusion application in your browser.
  2. Ensure that you have a GPU with 8GB VRAM or an M1/M2 Mac.
  3. Enter your desired input prompt in the "Prompt" text area. For example, you can enter "Art nouveau stained glass hummingbird".
  4. Optionally, you can provide a negative prompt in [brackets].
  5. Click on the "Generate" button to initiate the image generation process.
  6. The generated images will be displayed in the output area on the right side of the screen.
  7. You can download the generated images by clicking the "Download" buttons. The files will have the same name as the prompt.

Contributing

We welcome contributions to improve WebDiffusion. If you encounter any issues or have suggestions for new features, please feel free to open an issue or submit a pull request on the GitHub repository.

License

This project is licensed under the MIT License.

About

Generate batches of images in your browser with Stable Diffusion - private, free, and no installation required.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published