anapnoe / stable-diffusion-webui-ux

Stable Diffusion web UI UX
GNU Affero General Public License v3.0
970 stars 58 forks source link

[Bug]: Image disappears in Controlnet Preview Pane #149

Closed zono50 closed 1 year ago

zono50 commented 1 year ago

Is there an existing issue for this?

What happened?

When I go to Img2Img and i put a picture in controlnet, the image tucks under the UI, and I can no longer see it. image

I have placed an image in the box, and it tucks underneath so you can no longer see it.

Steps to reproduce the problem

  1. Go to Img2Img
  2. Press controlnet, pick a picture from my computer, drag and drop onto the preview box, and it tucks down the bottom underneath the UI.
  3. ...

What should have happened?

The image should be contained in the preview box

Commit where the problem happens

e6415c4892

What platforms do you use to access the UI ?

Linux

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

--xformers

List of extensions

Image browser controlnet Batch face swap Style Pile A111-sd-webui-locon a1111-stable-diffusion-webui-vram-estimator adetailer canvas-zoom model_preset_manager sd-dynamic-thresholding sd-extension-system-info 3d open pose editor sd-webui-additional networks sd-webui-ar sd-webui-controlnet sd-webui-panorama-viewer sd-dreambooth-extension prompt generator webui-tokenizer ultimate upscale

Console logs

To create a public link, set `share=True` in `launch()`.
Startup time: 55.3s (import torch: 2.1s, import gradio: 0.5s, import ldm: 0.5s, other imports: 1.4s, list SD models: 0.5s, setup codeformer: 0.5s, load scripts: 41.1s, create ui: 8.3s, gradio launch: 0.3s).
Error loading embedding sxzBloom_sxzBloom.pt:
Traceback (most recent call last):
  File "/mnt/Kodi_Backup/Applications/stable-diffusion-webui-ux-org/stable-diffusion-webui-ux/modules/textual_inversion/textual_inversion.py", line 210, in load_from_dir
    self.load_from_file(fullfn, fn)
  File "/mnt/Kodi_Backup/Applications/stable-diffusion-webui-ux-org/stable-diffusion-webui-ux/modules/textual_inversion/textual_inversion.py", line 182, in load_from_file
    raise Exception(f"Couldn't identify {filename} as neither textual inversion embedding nor diffuser concept.")
Exception: Couldn't identify sxzBloom_sxzBloom.pt as neither textual inversion embedding nor diffuser concept.

Error loading embedding sxzBloom_sxzBloom.pt:
Traceback (most recent call last):
  File "/mnt/Kodi_Backup/Applications/stable-diffusion-webui-ux-org/stable-diffusion-webui-ux/modules/textual_inversion/textual_inversion.py", line 210, in load_from_dir
    self.load_from_file(fullfn, fn)
  File "/mnt/Kodi_Backup/Applications/stable-diffusion-webui-ux-org/stable-diffusion-webui-ux/modules/textual_inversion/textual_inversion.py", line 182, in load_from_file
    raise Exception(f"Couldn't identify {filename} as neither textual inversion embedding nor diffuser concept.")
Exception: Couldn't identify sxzBloom_sxzBloom.pt as neither textual inversion embedding nor diffuser concept.

Additional information

i have two different versions of the webui on my computer. the older version doesn't have this issue from what i've seen. I can't remember the commit version of that one off the top of my head, but it was a duct taped together pip-compile version

FutonGama commented 1 year ago

This happen to me with some images and the resolution can't be so high also or this happen. Try use another image and a smaller to just to test it. But probably you have done that already. Another thing is canvas zoom, maybe is causing a issue and you don't need that in this fork cause you can already zoom it and i remember to use it and canvas zoom don't even worked.

anapnoe commented 1 year ago

remove canvas-zoom as suggested by @FutonGama it is known to cause issues ui-ux has inbuild zoom pan functionality

zono50 commented 1 year ago

Removed canvas zoom, but issue still persists.

this is what it looks like during txt2img

image

and this is what it looks like img2img

image

anapnoe commented 1 year ago

It would be nice if people try this things before post any bug

  1. you should always test with the latest commit
  2. disable all non inbuild extensions and test the one that causes the problem to rule out that other extension are not interfere
  3. update extension that cause the issue too

so in your case it seems you are using an outdated commit Untitledi

zono50 commented 1 year ago

ok well if it's an issue on my end, I will close the issue then and look for a solution on my end. Thank you

zono50 commented 1 year ago

What commit hash are you using? i'm using 37f3b28680ae13a377f3838ed482fc9c24835483 from the master branch which tells me i'm on the latest when i try to update. I'm not a git expert. I installed using the bash script, not using git clone

anapnoe commented 1 year ago

yes this commit is the latest https://github.com/anapnoe/stable-diffusion-webui-ux/commit/37f3b28680ae13a377f3838ed482fc9c24835483 control net from here https://github.com/Mikubill/sd-webui-controlnet

zono50 commented 1 year ago

ok well i'm using the commit hash image

I disabled all my extensions except for controlnet image

and same thing: image

anapnoe commented 1 year ago

this is strange i don't know if it is a thing with linux browser or your installation run this colab and test if it is working then you can try git clone and install anew https://colab.research.google.com/github/Linaqruf/sd-notebook-collection/blob/main/cagliostro-colab-ui.ipynb#scrollTo=A6c7-qjDdb0X

zono50 commented 1 year ago

image

Seems to work fine in the same browser but on a different commit

using manjaro with chromium

image

Only thing is this older commit i'm using was duct taped together using pip-compile so it takes over 5 minutes just to load the web app

zono50 commented 1 year ago

I tried it in firefox as well, and it's doing the same thing, so it's not a browser issue or browser extension issue either

anapnoe commented 1 year ago

ok drug and drop an image into the container dont click to open an image

zono50 commented 1 year ago

that's what i've been doing, i'll drag a file from my picture folder and drop it into the container and it tucks it neatly underneath the UI

anapnoe commented 1 year ago

ok the issue is strange on my end it is happening when you click to browse the same image after you have remove it it doesn't happen when you drop images directly to the container area

zono50 commented 1 year ago

That is interesting hmmm

anapnoe commented 1 year ago

can you test it on txt2image control net drop one image then remove it and drop it again I have to look more into it

zono50 commented 1 year ago

When i do txt2img, it drops it to the right side like this image when i remove it and drop it again, it does the same thing and goes to the same spot

anapnoe commented 1 year ago

can you check the last commit ?

zono50 commented 1 year ago

On the latest commit - d6b4aebe241858efe50cda78e6738e5a978ad8c1 and did the same thing.

zono50 commented 1 year ago

I appreciate you working on this tho.

rushuna86 commented 1 year ago

if this issue is anything like what happened to me a while ago it is the extension "Canvas Zoom", causing i2i images to disappear. After you've installed it, it pretty much fks up the whole image2image side of thing, even disabling the extension didnt fix it. had to pull a brand new clean install and never install it to fix the issue for me.

zono50 commented 1 year ago

I will try to reinstall it then and see what happens. Appreciate the info

zono50 commented 1 year ago

You are 100% correct, reinstalled controlnet and auto1111 ux and works perfectly now.