Img2Img model properties value meaning for API consumption #5529
Unanswered
Hugo-Matias
asked this question in
Q&A
Replies: 1 comment
-
Looks like indeed 0 or 1. Also, more info here: #9739 (comment) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm working on integrating Img2Img on my simple app by consuming the api, however I'm not certain about the following values:
They are integers that I suppose represent something like an enum but I don't know what their values mean. Can someone share that info? Judging from the webui, I kind of extrapolated to the following but without reverse engineering the code I'm not sure if it's the correct matches:
Resize_mode
0: Just Resize
1: Crop and Resize
2: Resize and Fill
Inpainting Fill
0: fill
1: original
2: latent noise
3: latent nothing
As for Inpainting Mask Invert I don't see a reason for it to be an integer instead of a bool since there is only true or false (inpaint masked or inpaint not masked). Is there any other value that might be relevant to this setting other than 0 or 1?
Beta Was this translation helpful? Give feedback.
All reactions