Git Product home page Git Product logo

stablediffusion-blazor-webapp's Introduction

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

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.