stable-diffusion.cpp
stable-diffusion.cpp copied to clipboard
photo enhancer / color correction
how would i use this to color correct an existing photo ?
with:
build/bin/sd --mode img2img -m models/v2-1_768-ema-pruned.ckpt -p "enhance colors" -i ~/Pictures/Lastenrad_01.jpg -o ~/Pictures/Lastenrad_1made.png --strength 0.4
i get a complete new image... thanks for any example.of a correct prompt to enhance an existing image
Lower strength values will give you a result that's closer to the original input image. Maybe using controlnets could also help you.
thanks for the hint. so i tried again with
build/bin/sd --mode img2img -m models/v2-1_768-ema-pruned.ckpt -p "enhance overall colors of the image" -i ~/Pictures/Lastenrad_01.jpg -o ~/Pictures/Lastenrad_1light.png --strength 0.1
the original image:
the 'corrected' result:
it does not really fix any color or quality. do i have to change the prompt, or use another model?
Yes, you should change the prompt. You need to use a prompt that describes the content of the image. Maybe the positive prompt could be something like "High quality picture of a cargo tricycle", and the negative prompt could be something like "low quality, muted colors".
A different model might give you better results, but no guarentee.
Also a controlnet could definitely help make it work with higher strength.
I don't think Stable Diffusion is necessarily the best thing to use for color correction. It might be possible to do this, but that's not really what it's built for.