sd-webui-controlnet icon indicating copy to clipboard operation
sd-webui-controlnet copied to clipboard

API endpoints for modules parameters

Open olegchomp opened this issue 2 years ago • 2 comments

It will be greate to have endpoint for parameter like in gradio.

label="Annotator Resolution", minimum=64, maximum=2048, value=512, step=1, interactive=True

olegchomp avatar Mar 31 '23 21:03 olegchomp

To make sure I understand your request, are you referring to creating an endpoint to discover which thresholds (none, a, or a and b) are available for a given annotator?

ljleb avatar Mar 31 '23 22:03 ljleb

To make sure I understand your request, are you referring to creating an endpoint to discover which thresholds (none, a, or a and b) are available for a given annotator?

Yes! I'm making own UI and it will be very cool to just request parameters with labels and values. Here is example on my side, copied from gradio, but it hard to allways keep up to date and look for git update.

update(inpar=r, label="Annotator resolution", value=512, minimum=64, maximum=2048, step=1, interactive=True)
update(inpar=a, label="Canny low threshold", minimum=1, maximum=255, value=100, step=1, interactive=True)
update(inpar=b, label="Canny high threshold", minimum=1, maximum=255, value=200, step=1, interactive=True)

olegchomp avatar Mar 31 '23 22:03 olegchomp