-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Support controllable RGB points or brushes for Image inout. #1410
Comments
Thx for the suggestion @HighCWu! These look like a beautiful suggestions, we might think over how to support these use-cases. @aliabid94, @pngwn, @dawoodkhan82, @abidlabs. Btw I know that we support custom javascript calls in the library, but not sure if it supports this use-case, probably not. |
@farukozderim I looked at the code you mentioned. It's more like calling a frontend function before the event is triggered, rather than the frontend triggering the event. As for how the user writes the frontend code to get the gradio components on |
Hi! We've now made it possible for Gradio users to create their own custom components -- meaning that you can write some Python and JavaScript (Svelte), and publish it as a Gradio component. You can use it in your own Gradio apps, or share it so that anyone can use it in their Gradio apps. Here are some examples of custom Gradio components:
You can see the source code for those components by clicking the "Files" icon and then clicking "src". The complete source code for the backend and frontend is visible. In particular, its very fast if you want to build off an existing component. We've put together a Guide: https://www.gradio.app/guides/five-minute-guide, and we're happy to help if you'd like to put together a custom component for this issue |
I'm very happy that Gradio now supports users to customize components, but I also want to know whether Gradio's native drawing board supports the original image and new strokes being transmitted to the backend separately. For example, I drew colored strokes on a grayscale image, and I want to get both the original image and the strokes drawn by the user in the backend. I think this function should be expanded on the existing drawing board of Gradio. |
This will be possible in the new ImageEditor we are releasing as part of Gradio 4.0 -- you can follow along here: #6169 |
Great job. I will follow up |
I'll go ahead and close this issue since we are not planning to include this in the core Gradio library. But happy to help if you are interested in making this a custom Gradio component (feel free to ask questions in this issue). |
Is your feature request related to a problem? Please describe.
I'm always frustrated when I try to make a inference to input and output points coordinates or RGB color blocks.
I want to know if it is possible to add controllable points to an input images. Like detect face 68 feature points and display the points. When meet error point positions, user can move the points. Or something like rgb hint points for image colorization.
More broadly, probably like labelled brushes in GauGAN.
Describe the solution you'd like
It would be like:
Application scenarios: Fix the output of the first stage detection model.
I want to make a demo for my HighCWu/face_morpher_plus
It would be like the UI in junyanz/interactive-deep-colorization
It would be like the UI in NVlabs/GauGAN
It would be something like:
The text was updated successfully, but these errors were encountered: