deepratna-awale / deepratna-awale/AutoExpress

Adding support for other WebUIs.

Open
#2 0 comments 0 reactions 0 assignees View on GitHub
good first issue help wanted
Dominant language
JavaScript
Stars
27
Forks
2
PR merge metrics
No merged PRs in 30d

Description

### 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](https://github.com/deepratnaawale/AutoExpress/blob/main/autoexpress/modules/a1111_api.py) in no way is this coded well, but gets the job done.

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

- [ ] Install [API-Payload-Display](https://github.com/huchenlei/sd-webui-api-payload-display) if you can on your webui. Restart the whole webui by closing and reopening terminal running the webui.
- [ ] Goto img2img tab, drop any image.
- [ ] Goto Adetailer drop down, tick both checkboxes (to activate after detailer and skip img2img)
- [ ] Set the Inpainting parameters as shown in the image below:
- [ ] ![inpaint settings](https://github.com/deepratnaawale/AutoExpress/assets/48187232/be4eed44-be2b-41f2-bde6-12ed61007d71)
- [ ] Click on Generate
- [ ] Got API Payload dropdown below After Detailer and copy it (there should be a copy button).
- [ ] Paste this copied data into Autoexpress/autoexpress/resources/payload.json
- [ ] Try Generating Again.

**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**

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.