GithubHelp home page GithubHelp logo

leszekhanusz / diffusion-ui Goto Github PK

View Code? Open in Web Editor NEW
140.0 140.0 12.0 3.91 MB

Frontend for deeplearning Image generation

Home Page: https://diffusionui.readthedocs.io

License: MIT License

JavaScript 31.41% HTML 0.14% Vue 15.59% CSS 1.08% Jupyter Notebook 51.79%

diffusion-ui's People

Contributors

kywch avatar leszekhanusz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

diffusion-ui's Issues

Error! The backend returned the http code: 500 (Windows machine, Automatic1111 integration)

I'm getting a 500 error when trying to use this ui with Automatic1111 as the backend.

Tried on Windows 10 and 11 machines.
Tried latest commit, the recommended f2a4a2c3a672e22f088a7455d6039557370dd3f2, and several major steps back, up to 3 days ago. Same errors each time.

Python 3.10.6
pip 22.2.2

Traceback (most recent call last): File "D:\stable-diffusion-webui-1111\venv\lib\site-packages\gradio\routes.py", line 273, in run_predict output = await app.blocks.process_api( File "D:\stable-diffusion-webui-1111\venv\lib\site-packages\gradio\blocks.py", line 739, in process_api inputs = self.preprocess_data(fn_index, inputs, state) File "D:\stable-diffusion-webui-1111\venv\lib\site-packages\gradio\blocks.py", line 638, in preprocess_data processed_input.append(block.preprocess(raw_input[i])) File "D:\stable-diffusion-webui-1111\venv\lib\site-packages\gradio\components.py", line 2118, in preprocess return process_single_file(x) File "D:\stable-diffusion-webui-1111\venv\lib\site-packages\gradio\components.py", line 2088, in process_single_file f["name"], TypeError: string indices must be integers

Error 500

Won't work for me
I am a Windows user

Message inside the web-user.bat

Traceback (most recent call last):
File "C:\Users\Heimann David\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 273, in run_predict output = await app.blocks.process_api(
File "C:\Users\Heimann David\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 739, in process_api inputs = self.preprocess_data(fn_index, inputs, state)
File "C:\Users\Heimann David\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 638, in preprocess_data
processed_input.append(block.preprocess(raw_input[i]))
File "C:\Users\Heimann David\stable-diffusion-webui\venv\lib\site-packages\gradio\components.py", line 2118, in preprocess
return process_single_file(x)
File "C:\Users\Heimann David\stable-diffusion-webui\venv\lib\site-packages\gradio\components.py", line 2088, in process_single_file
f["name"],
TypeError: 'bool' object is not subscriptable

have tried using git fetch origin pull/1276/head and git checkout FETCH_HEAD
Used the Automatic1111 sorted option and localhost is http://localhost:7860/

And i used the most recent version

[Enhancement] Option to Save Specific Pictures

Suggestion:
The Hamburger menu is a little lonely, what about adding a little Button below "Generate Again" to save the image?

Preferably without any Watermarks or Exif data... filenames ofc can be something like seed+modelhash

updates needed for horde generation

  1. The stable horde backend is returning a 403 error with default settings because the sampler defaults to k_dpm_2 at 30 steps; you need to be signed in (ie, not anonymous) to generate >25 steps on heun or dpm2

As the message response says1:

Due to heavy demand, for requests over 832x832 or over 50 steps (25 for k_heun and k_dpm_2*), and for 12 or more weights, the client needs to already have the required kudos. This request requires 0.0 kudos to fulfil.

The step counts are permanent, afaik, while the image size varies based on horde usage.

  1. By default, images are returned as r2 image URLs, not as base64 anymore. You need to either display the returned URL or add r2:false to the request. returned images will not display correctly until this is fixed

Footnotes

  1. it would be a good idea to include this message, not direct the user to outdated documentation for another service; the documentation should probably also link to the horde policy on this. But that's ok, because the horde policy is also outdated, and doesn't have an anchor that would allow you to link directly to that part of the page. โ†ฉ

why I run this with error

I already run my stable diffusion backend in my computer. And the project can get config successfully, but nothing happen.

Until I find this error. Whats happen and how can I fix this error,

Thank you for taking time out of your busy schedule to answer my questions!

image
image

What is it for?

Hello, what is the main use-case/point of this software? Not trying to be rude, but I kept seeing the creator talking about it on the webui repo, so I came out of curiosity but I can't really find a good description of what it does - and at first glance it seems like it does less than what webui provides, so I'm just hoping for some clarification as I'm sure I'm likely just missing the point.

Does this frontend provide better inpainting features? I see that it can be used as a frontend for multiple backends... can it switch between backends on the fly with a simple checkbox or something?

Kudos for your hard work, and thank you in advance for taking the time to explain it to me. :)

Automatic1111 arguments have changed

First of all: Love this project. I think it's really valuable that you made it. And I know it's helped a number of others in the community integrate with Automatic1111, standing on your shoulders, so to speak.

It looks like the Automatic1111 web ui has changed quite a bit in the past few weeks. From what I can tell, yesterday there was a breaking change in the arguments, so now img2img needs to be called differently. Compare these two files (in my project, using Automatic1111) for a quick view of the changes: Oct 20 params / Oct 21 params

Note that even fn_index changed from 33 to 35.

I think that more changes happened today, and the arguments actually might look different again.

Given how brittle this integration is, it's a good thing that an API is looking close:

Strokes disappearing / inpaint being weird

Hiya!

I've been trying to work the brush into generating stuff, compareable with NovelAi

So when i go ahead and generate a base picture and want to add a hat, i'd go on edit.

The first weird thing is that i only have a eraser as a selection... so i click the eraser and remove a little area and then i can click the pen. Regardless of undoing what i just erased or keeping it, my strokes always disappear. I draw, and then it's gone 0 effect.

Am i missing something?

Error 500 when third party scripts are loaded.

Diffusion UI works when only included scripts are loaded, but sends a 500 error message when a third party script is also loaded.

#40 #42 probably related, but a different solution will likely be required.

Guessing that gradio api listing is a blocking issue, but wanted to make you aware.

Console error message slightly different:

Traceback (most recent call last):
File "D:\teststable\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 273, in run_predict
output = await app.blocks.process_api(
File "D:\teststable\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 739, in process_api
inputs = self.preprocess_data(fn_index, inputs, state)
File "D:\teststable\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 638, in preprocess_data
processed_input.append(block.preprocess(raw_input[i]))
File "D:\teststable\stable-diffusion-webui\venv\lib\site-packages\gradio\components.py", line 1067, in preprocess
return self.choices.index(x)
ValueError: '' is not in list

Feature request: Rotate Images

Because it seems like this repo will be more focused on better tools for inpainting

Ein feature which should be easy bud should really help is being able to Rotate Images in the inpainting window

Because some posing is sometimes very limited in its datasets in its orientation of body parts, it would really help if it would be possible to rotate a picture temporarily in the inpainting editor.

A1111 Image generates and then vanishes when complete

First of all thanks, I use your site as a great safe front end for the rest of my family to generate images quickly without the risk of screwing up the config. Lots of joy and laughter from my children as they generate images of Totoro going down a water slide.

All that aside, I started having two issues lately, one is Gradio Auth. I have my SD published with SSL through a reverse proxy, but due to recent exploits, I enabled a username and password to limit my attack vector. However, when I do, DiffusionUI.com says it can not find any API. I assume auth is not currently supported.

The second issue I started having is when I do connect to my back end it will generate an image and when it completes it vanishes.
2022-10-22 12_00_11-Window

I disable auth and diffusion connects happily to my back end. It will see all of the models in the drop-down and generate no errors.
I enter a prompt or use a bouquet of roses, I can see the image building, and when it finishes I get an empty image placeholder. Like it can't find it. The image is successfully created and saved in my output folder. I figured it was broken because of all the changes to image history in the A1111 repo, but I am glad to hear it should be working.

I am experiencing this issue regardless of browser or OS.
Tested are win 10 and 11 on chrome and firefox

Current A111 version: Commit hash: 48dbf99e84045ee7af55bc5b1b86492a240e631e
Console output is just successful image creation
Output directory for txt2img images: outputs/txt2img
Output directory for img2img images: outputs/img2img

How to parse Gradio config?

I'm working on an API for Automatic's webui but I'm struggling to parse the Gradio config file. There's no documentation and from what I understand it's linking parts of the UI together. How do you do it for this project? I tried to port your code to Python but it isn't perfect and I'm not getting the same results. Just would like some advice.

Standardization / OpenAPI 3

Hi! I like what you are doing here!

Unfortunately, I think the complexity will grow exponentially if you want to support different UIs with different parameters.

Would it make sense to come up with & propose an API specification for sd-backends? this can them be implemented by the different repos and this UI will work out of the box.

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.