deepratna-awale / AutoExpress

Automatically creates character expressions from given image using A1111 Stable Diffusion API (with ADetailer).
MIT License
7 stars 2 forks source link

Adding support for other WebUIs. #2

Open deepratna-awale opened 3 months ago

deepratna-awale commented 3 months ago

If you decide to use a different WebUI it will expect different JSON data compared to what I am sending to the A1111 SD API. Also the API call paths might be different than what A1111 uses.

Any help in adding support for other SD API Clients is seeked and appreciated.

You must use a prebuilt Python API client for your WebUI or create one. This is a big enough task in itself, so you'll have to do your own research. Refer to My A1111 API Client in no way is this coded well, but gets the job done.

To create a payload json, use the following technique if applicable:

Alternatively, if the extension cannot be installed for your webui get the JSON from WebUI API documentation. You'll need payloads for after detailer and img2img