Skip to content

How to get img2img result prior to color correction from API #16729

Answered by w-e-w
fawnha asked this question in Q&A
Discussion options

You must be logged in to vote

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 payload

"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
w-e-w@ffdf2ce
basically we need to save the image before color correction image and then add it to res.images when using API
image_without_cc.info["parameters"] = infotext(i) this is for addin the metadata to the image

I did not thoroughly test this, but seems to work from my quick test


another alternative way is to save add "save_images" : …

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@fawnha
Comment options

@w-e-w
Comment options

w-e-w Dec 18, 2024
Collaborator

@w-e-w
Comment options

w-e-w Dec 18, 2024
Collaborator

Answer selected by fawnha
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants