Skip to content

photo enhancer / color correction #626

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
magdesign opened this issue Mar 9, 2025 · 3 comments
Open

photo enhancer / color correction #626

magdesign opened this issue Mar 9, 2025 · 3 comments

Comments

@magdesign
Copy link

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

@stduhpf
Copy link
Contributor

stduhpf commented Mar 9, 2025

Lower strength values will give you a result that's closer to the original input image. Maybe using controlnets could also help you.

@magdesign
Copy link
Author

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:

Image

the 'corrected' result:

Image

it does not really fix any color or quality.
do i have to change the prompt, or use another model?

@stduhpf
Copy link
Contributor

stduhpf commented Mar 9, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants