How can i create an extension? #14678
-
i have look far and wide for resources on this topic, all i have found is this https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Developing-extensions, which i don't understand at all, i tried reading the source code of extensions but i am completely stumped, i do understand python but i am just completely lost on how to get started. Any and all help is appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
depends on what type of extension that you want to create one way to learn is to just look at other extensions image generation pipeline extensions there's a specific structure that you need to follow in order for whatever you would recognize it as extension if you're trying to create a image generation pipeline extensions essentially what you need is to create a python script in scripts dir and in this script you create a class that extends if you are post-processing module extension, it;s similer but you need to extend for other things like if you wish to add a new tab then you would need to use certain callbacks in callbacks like I suggest you try to learn by putting some breakpoints in extensions that you already used and tried to understand them |
Beta Was this translation helpful? Give feedback.
webui is base on gradio
which means if you are interested in interacting with the UI elements then what you should do is look at the gradio docs
When developing webui related stuff it's better that you have understanding of Gradio
especially if you are do UI stuff and not just write them back and functions
the three categories of extensions I listed above are based on how they interact with the core or web UI backend
and not the UI froun end
so basically the categories does not suit your use case if this is what you're trying to do