Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding support for other WebUIs. #2

Open
9 tasks
deepratna-awale opened this issue May 21, 2024 · 0 comments
Open
9 tasks

Adding support for other WebUIs. #2

deepratna-awale opened this issue May 21, 2024 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@deepratna-awale
Copy link
Owner

deepratna-awale commented May 21, 2024

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:

  • Install 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
  • 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

@deepratna-awale deepratna-awale added the documentation Improvements or additions to documentation label May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant