-
I am using the API for inpainting and img2img. I want to apply color correction when doing img2img but not inpainting becuase it causes serios color bleeding in inpainting. I have turned on "Apply color correction to img2img results to match original colors" and also set it to save a copy before applying color correction. My hope is that the API would return both the color corrected and non-color corrected results after img2img and I would use the non-color corrected version when doing inpainting and the color corrected version when doing img2img, however the api only returns the color corrected version. How would I go about modifying the API so it returns both versions? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
one way to solve this would be to just avoid the problem entirely by just specifying if you want to use "override_settings": {
"img2img_color_correction": True / False
} but if you really need to have both images then this should be about the minimal modification that can achieve what you want I did not thoroughly test this, but seems to work from my quick test another alternative way is to save add |
Beta Was this translation helpful? Give feedback.
one way to solve this would be to just avoid the problem entirely by just specifying if you want to use
img2img_color_correction
via override in the payloadbut if you really need to have both images then this should be about the minimal modification that can achieve what you want
w-e-w@ffdf2ce
basically we need to save the image before color correction image and then add it to
res.images
when using APIimage_without_cc.info["parameters"] = infotext(i)
this is for addin the metadata to the imageI did not thoroughly test this, but seems to work from my quick test
another alternative way is to save add
"save_images" : …