Gradio 4 #245
Replies: 3 comments 1 reply
-
Short update... I had expected the custom component to be faster than the old implementation - but this is definitely exceeding my expectations. In the video, you can see a side-by-side comparison. As you can see, when you switch quickly from image to image, the old implementation is somewhat choppy and the generation info / filename info lags behind. By contrast, the new implementation looks smooth and the textboxes are updated instantly. 2024-01-16.mp4 |
Beta Was this translation helpful? Give feedback.
-
Update: There is no update 😞 a1111 still has not upgraded to Gradio 4. Gradio 4 came out last November. At this point I wonder if the switch will ever happen. This was the last info I found:
Meanwhile Gradio keeps developing, which means I feel like I'm developing against a moving target. At this point I feel, I can't really continue, until there is more info from the a1111 side. |
Beta Was this translation helpful? Give feedback.
-
what about supporting forge? |
Beta Was this translation helpful? Give feedback.
-
As you might be aware, a1111 is working on supporting the next major Gradio release.
Gradio 4 offers custom components, so I plan to create an extended Gallery component.
One of the main advantages is that much less custom javascript code is needed. This has been the major problem with this extension. The standard Gradio Gallery just didn't have enough features, so a lot of stuff needed to be done in javascript, which essentially tried to force Gradio to do things it wasn’t designed to do. This made it hard to develop and test, and it wasn’t always stable.
Another advantage will be that the custom component can have features that were not reasonably possible before. A good example is the ability to select multiple image and perform some kind of mass processing on them (for example delete).
Here's my current dev version and you can see the available select boxes on each thumbnail:
This will probably be the biggest change since this extension was created, so I hope I don't put too many new bugs in 😅
I do plan on supporting both the Gradio 3 and Gradio 4 versions for a while, if I can manage that. But at some point I'll have to switch to Gradio 4 only.
Beta Was this translation helpful? Give feedback.
All reactions