stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

[Bug]: Copy image to Sketch / Inpaint Sketch doesn't work

Open RJSprod opened this issue 2 years ago • 16 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues and checked the recent builds/commits

What happened?

When copying to sketch/inpaint sketch from img2img, it doesn't load. It's been this way since the feature was made available with command line. Now that it's built in it still does not work correctly.

The function to send directly to sketch causing the UI of my browser to freeze (older builds), on new builds, it just errors out and shows an blank canvas image error. Only way to sketch is to drop in my own image through file browser, built in function doesnt work.

Am i the only one with this issue.

Screenshot 2023-01-21 111008

Steps to reproduce the problem

  1. Create an image in txt2img
  2. Send img to img2img
  3. Copy img to sketch / inpaint sketch

What should have happened?

Image should load and allow brush edits

Commit where the problem happens

3bf9351a9b

What platforms do you use to access UI ?

Windows

What browsers do you use to access the UI ?

Mozilla Firefox, Microsoft Edge

Command Line Arguments

--listen --port 7861 --api --enable-insecure-extension-access --xformers --deepdanbooru --gradio-auth 123:abc

Additional information, context and logs

No response

RJSprod avatar Jan 21 '23 16:01 RJSprod

I have this problem too, even since I used the COMMANDLINE_ARGS: "--gradio-img2img-tool color-sketch" and "--gradio-inpaint-tool color-sketch". If I send an image to the sketch tabs the problem occurs, but if I open an image directly from the sketch tabs there is no problem. I'm coming to think that it could be because of the GPU, I have an NVIDIA GTX 1660 SUPER.

landrasss avatar Jan 21 '23 20:01 landrasss

I have a similar issue, no idea if it's related, where it sends the image to sketch/inpaint sketch butt he browser just comes to a screeching halt. I cannot click anything anymore. Normal inpainting works like a charm.

HWiese1980 avatar Jan 21 '23 21:01 HWiese1980

I'm happy to know its not just my set up. I was going to try a clean install if so.

If this feature is universally broken, there shouldn't be a UI to trigger it. It's like a self destruct button.

RJSprod avatar Jan 21 '23 21:01 RJSprod

I'm happy to know its not just my set up. I was going to try a clean install if so.

If this feature is universally broken, there shouldn't be a UI to trigger it. It's like a self destruct button.

I've tried a clean install, but the problem persists. I even removed the COMMANDLINE_ARGS and nothing. What GPU do you have?

PD: My current COMMANDLINE_ARGS are: --medvram --opt-split-attention --precision full --no-half --no-half-vae --xformers --deepdanbooru

landrasss avatar Jan 22 '23 06:01 landrasss

Also facing same issue, but only through mobile browser (chrome on android). Local (chrome on windows 10) works fine, but it breaks the same way when I use console to force it into mobile mode.

mygithubaccount222 avatar Feb 20 '23 22:02 mygithubaccount222

Same issue here for me. I can drag+drop images onto the Sketch tab and that works fine, but the "Copy image to" sketch button causes it to break. I can see the image that I copied kind of zip off going down and right, leaving the same empty white "start drawing" square shown in the picture above. I'm on Windows 11 running Chrome.

prog0111 avatar Feb 23 '23 23:02 prog0111

Occurring to me under Windows and MacOS, in chrome and safari (I didn't try other browsers)

arybalka avatar Mar 06 '23 08:03 arybalka

This appears to be a Gradio issue, which someone already has fixed on newer Gradio versions

https://github.com/gradio-app/gradio/issues/3248

https://github.com/gradio-app/gradio/pull/3277

I just have no idea how to implement them on SD webui, I can't find the function that does the resize in webui's files. Updating Gradio also wouldn't fix it, as it needs major changes (page gets funky and doesn't work)

mygithubaccount222 avatar Mar 06 '23 15:03 mygithubaccount222

I'm seeing this issues in 1.3 that dropped today.

Rabbitroo0001 avatar May 27 '23 22:05 Rabbitroo0001

I'm seeing this issues in 1.3 that dropped today.

Yo, same. Did you find a fix?

TubeStorm avatar Jun 13 '23 23:06 TubeStorm

Was this fixed? Because I have nothing in inpaint sketch when I copy the image over. I can download and upload manually.

maniac-0s avatar Feb 02 '24 21:02 maniac-0s

Also getting this, with macOS + safari if it matters, though for me the image shows up in the inpatient sketch tab, the browser freezes, then the image disappears and it unfreezes.

abstractrealism avatar Feb 04 '24 19:02 abstractrealism

Also happening for me on Linux

binarymist avatar Feb 19 '24 05:02 binarymist

The fix I found for this issue for me was changing the screen resolution on my computer and web browser to 100% screen resolution, i previously had it set at 120% resolution, when i was getting the error. anything above that or lower messes with import to inpaint sketch. It fixed the copy to inpaint sketch white blank photo error. also fixes the inpaint sketch resizing error. only problem i have now, is the txt on my screen is smaller than i would like it to be. hopefully this helps.

USER12612301 avatar Feb 26 '24 01:02 USER12612301

Ah, that's interesting, thanks @USER12612301. I'm on a 4K screen with a 150% UI scale. Very likely the reason. And hopefully easy to fix. However, I wouldn't want to go down to 100% because it's already difficult to read sometimes at 150%.

HWiese1980 avatar Feb 26 '24 06:02 HWiese1980

I used three image plates in the interface, but only one of them can be displayed normally, and the others can only select the example and cannot be uploaded from the local area, but the code of the three sections is the same, I don't know why, and it is useless to change the browser (I just started the upload used by source, but I found that there was no response, and I tried to change it to canvas, but it still didn't respond) 3dc329dbc561134cb8cbd019e01d828 1714102350878

Kuroba1412 avatar Apr 26 '24 03:04 Kuroba1412