[go: nahoru, domu]

Skip to content

chaosnytez/StableDiffusion-Blazor-WebApp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blazor Diffusion

A Stable Diffusion Front End

Using Automatic1111's api we can improve upon the default Gradio graphical interface and re-design it using a more powerful framework such as Blazor.

Implementing the regular Txt2Img, Img2Img and Upscale modes with some custom extensions already supported, such as ControlNet, Dynamic Prompts, MultiDiffusion or Ultimate Upscale, etc. It also includes a project based gallery and a resource/prompt manager with CivitAI integration for a seamless experience.

Disclaimer: This is a demo project, I didn't have shareability in mind so it's tightly catered to my particular setup. Because of that I decided not to version control the appsettings.json file. Feel free to clone/fork but be aware that this needs some tweaks before being able to run on other systems.

Projects

Project based gallery system to filter and organize your generated images. The projects can also be further segregated into their own folders for a more granular theme separation (not demonstrated in the video).

01.-.Projects.mp4

Tags

Prompt writing using tag buttons for a more confortable user experience while also being able to increase/decrease the attention weight of the tokens. The buttons are user customizable by modifying a json file to add both tags and categories.

02.-.Tags.mp4

Image Inference and Management

Basic image inference on Txt2Img mode with some of the possible parameters and pre-prompt styles. Also showcasing the image viewer and gallery workflow.

03.-.Inference.Image.Management.mp4

Info

Info panel useful to check or reuse previously generated parameters. Notice the deterministic nature of Stable Diffusion where the same settings generate the same image.

04.-.Info.mp4

Img2Img

Img2Img is a powerful mode that allows the user to either draw over an image or mask out a portion of it for rendering (inpainting), both features are demonstrated here. This mode uses several Html Canvas stacked over each other to draw the pointer and manipulate pixel information using JSInterop.

05.-.Img2img.mp4

Upscale

Simple upscale mode that uses GAN's to quickly upscale an image outside of latent space.

06.-.Upscale.mp4

Resources

Civitai.com integration for resources and their example images. Downloads are divided into categories (Checkpoint, Lora, Textual Inversion Embedding, etc.) and can also be further organized into user defined sub-types if necessary. Files are managed by the app according to filesystem settings.

07.-.Resources.mp4

Prompts

Prompt templates can also be created and used as styles. Dynamic Prompts is a very useful script to generate new and unexpected prompts.

08.-.Prompts.mp4

Wildcards

Following the previous feature, we finish this demo by displaying the potential of user created wildcards, another way to iterate over random prompts and create new interesting images.

09.-.Wildcards.mp4

About

Stable Diffusion gui based on Blazor and Automatic1111 API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 49.8%
  • HTML 46.4%
  • CSS 2.3%
  • JavaScript 1.5%