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 either tool="editor" or tool="select", one can select part of the image. When doing so, the input image updates to reflect the newly selected region. However, the update of the input image is broken in version 3.35.2 and the selected region is not shown; instead the full image is displayed. If one submits the image, the correct selection is passed to the function, rather than the shown input image. So only the UI part seems to be broken. Strangely, if one tries to select a new region, the previous selection is shown (instead of the latest selection).
I checked that the issue is not present in Gradio version 3.20.0.
Have you searched existing issues? 🔎
I have searched and found no existing issues
Reproduction
import gradio as gr
if name == "main":
demo = gr.Interface(
lambda x: x,
inputs=gr.Image(tool="editor"),
outputs="image",
)
This is somewhat unrelated to this issue, but could someone explain exactly the difference between "editor" and "select"? It seems to me that they both offer the same functionality, but "editor" forces you to first press the pencil icon. Does "editor" offer additional functionality that I am missing?
And furthermore, what is the recommended way to let someone crop an image and sketch on it?
Describe the bug
When using either
tool="editor"
ortool="select"
, one can select part of the image. When doing so, the input image updates to reflect the newly selected region. However, the update of the input image is broken in version 3.35.2 and the selected region is not shown; instead the full image is displayed. If one submits the image, the correct selection is passed to the function, rather than the shown input image. So only the UI part seems to be broken. Strangely, if one tries to select a new region, the previous selection is shown (instead of the latest selection).I checked that the issue is not present in Gradio version 3.20.0.
Have you searched existing issues? 🔎
Reproduction
import gradio as gr
if name == "main":
demo = gr.Interface(
lambda x: x,
inputs=gr.Image(tool="editor"),
outputs="image",
)
Screenshot
No response
Logs
No response
System Info
gradio version=3.35.2 os version = "Ubuntu 20.04.6 LTS" browser version = chrome 114.0.5735.133
Severity
I can work around it
The text was updated successfully, but these errors were encountered: