johko
1
When I use the sketch
option in an image input, how do I define an example mask input in Gradio?
I tried to build a numpy array matching the size of the image and filled like a clean mask, but that did not work.
here is one way I tried:
example_mask = np.empty((327,600,4))
example_mask[:] = [0,0,0,255]
examples=[["bruce.png", example_mask], "64", "128"],
Currently, it is not possible to provide an example mask. Weโll work on this in the future!
We are keeping track of sketching-related issues here: refreshed image input component ยท Issue #466 ยท gradio-app/gradio ยท GitHub
Would you kindly be able to add this to the issue?
johko
3
Thank you for the reply, I will add the topic in the issue 