1 to 1 Correspondence of the API w/ the WebUI #9098
Replies: 3 comments
-
This is what is called when the request comes from the gradio web app: stable-diffusion-webui/modules/img2img.py Line 119 in 955df77 For API, names of fields should be the same as here. API code calling same method is here: stable-diffusion-webui/modules/api/api.py Line 324 in 955df77 |
Beta Was this translation helpful? Give feedback.
-
You can compare them with each other img2img.py code: webui Request parameter: api Request parameter: |
Beta Was this translation helpful? Give feedback.
-
have you found it? |
Beta Was this translation helpful? Give feedback.
-
Hey,
I'm trying to establish a 1-1 correspondence between the API and the WebUI i.e. whatever output I can get with the WebUI I should be able to get the EXACT same output with the API.
Looking at the API docs I see that there's a bunch of params but to make this one to one correspondence I need to find what these params are in the WebUI so I can pass the exact same ones in the API call for img2img. My img2img contains a mask and an input image (trying to replicate the inpaint upload)
Please let me know if anyone has come across this solution?
Regards.
Beta Was this translation helpful? Give feedback.
All reactions