Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
RJSprod opened this issue Jan 21, 2023 · 16 comments
Open
1 task done

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

RJSprod opened this issue Jan 21, 2023 · 16 comments
Labels
bug-report Report of a bug, yet to be confirmed

Comments

@RJSprod
Copy link

RJSprod commented Jan 21, 2023

Is there an existing issue for this?

  • 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 RJSprod added the bug-report Report of a bug, yet to be confirmed label Jan 21, 2023
@landrasss
Copy link

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.

@HWiese1980
Copy link

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.

@RJSprod
Copy link
Author

RJSprod commented Jan 21, 2023

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.

@landrasss
Copy link

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

@mygithubaccount222
Copy link

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.

@prog0111
Copy link

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.

@arybalka
Copy link

arybalka commented Mar 6, 2023

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

@mygithubaccount222
Copy link

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

gradio-app/gradio#3248

gradio-app/gradio#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)

@Rabbitroo0001
Copy link

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

@TubeStorm
Copy link

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

Yo, same. Did you find a fix?

@maniac-0s
Copy link

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

@abstractrealism
Copy link

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.

@binarymist
Copy link

Also happening for me on Linux

@USER12612301
Copy link

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.

@HWiese1980
Copy link

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%.

@Kuroba1412
Copy link

Kuroba1412 commented Apr 26, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-report Report of a bug, yet to be confirmed
Projects
None yet
Development

No branches or pull requests