You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the gr.ImageMask component in a Gradio interface, the brush painting functionality works as expected when an image is uploaded via the web interface. However, if the component is updated programmatically with gr.update(value=np.array(...)), the brush painting feature stops working entirely.
Describe the bug
When using the gr.ImageMask component in a Gradio interface, the brush painting functionality works as expected when an image is uploaded via the web interface. However, if the component is updated programmatically with gr.update(value=np.array(...)), the brush painting feature stops working entirely.
Have you searched existing issues? 🔎
Reproduction
Steps to Reproduce:
Upload an image through the web interface.
Use the brush tool to paint on the canvas (this should work normally).
Update the component internally using:
Observe that after the update, the brush painting functionality is completely disabled.
Screenshot
2025-02-18.3.02.34.mov
Logs
System Info
Severity
I can work around it
The text was updated successfully, but these errors were encountered: