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

UI crashes when sending image from one to another with tool="color-sketch" #3473

Closed
1 task done
cvrunmin opened this issue Mar 15, 2023 · 4 comments
Closed
1 task done
Assignees
Labels
bug Something isn't working 🖼️ image Image component
Milestone

Comments

@cvrunmin
Copy link

Describe the bug

When an image is sent from one gr.Image to another gr.Image with tool="color-sketch", the browser hangs and crashes the image.
Similar issue is found at #3248, with similar code here: #3248 (comment) .

This issue has blocked usage of sending freshly generated image to img2img (sketch) in AUTOMATIC1111/stable-diffusion-webui#7007

Is there an existing issue for this?

  • I have searched the existing issues

Reproduction

You can reproduce using this snippet:

with gr.Blocks() as demo:
    with gr.Row():
        with gr.Column():
            img1 = gr.Image(source='upload', label='img1', interactive=True, type="pil", tool="editor", image_mode="RGBA")
            btnSend = gr.Button('Send')
        with gr.Column():
            img2 = gr.Image(source='upload', label='img2', interactive=True, type="pil", tool="color-sketch", image_mode="RGBA")
    btnSend.click(fn=lambda x:x, inputs=[img1], outputs=[img2])

demo.launch()

Screenshot

No response

Logs

n/a (log is clean)

System Info

Gradio: 3.21.0
Browser: Chrome, Edge

Severity

serious, but I can work around it

@cvrunmin cvrunmin added the bug Something isn't working label Mar 15, 2023
@cvrunmin
Copy link
Author

It seems to be the same canvas resizing issue I think

image

@abidlabs abidlabs added this to the 3.x milestone Mar 17, 2023
@pngwn pngwn added the 🖼️ image Image component label Mar 20, 2023
@pngwn
Copy link
Member

pngwn commented Mar 20, 2023

This is similar to some of the other issues around image resizing/ determining the nature of a change and will need to be addressed later. cc @abidlabs

@abidlabs abidlabs removed this from the 3.x milestone Mar 20, 2023
@abidlabs
Copy link
Member

Sg clearing from milestone

@pngwn
Copy link
Member

pngwn commented Nov 18, 2023

Closed by #6169

@pngwn pngwn closed this as completed Nov 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working 🖼️ image Image component
Projects
None yet
Development

No branches or pull requests

3 participants