lllyasviel / Fooocus

Focus on prompting and generating
GNU General Public License v3.0
39.98k stars 5.52k forks source link

Restoring and colorizing old photos #1490

Closed aliwithgrain closed 8 months ago

aliwithgrain commented 8 months ago

Is restoring and colorizing old photos possible with Fooocus?

rvdd1962 commented 8 months ago

Yes, descripe the old photo in your prompt and use color photo in your prompt. Then put your old photo in the image2image and use vary (subtle).

Amit30swgoh commented 8 months ago

Yes, descripe the old photo in your prompt and use color photo in your prompt. Then put your old photo in the image2image and use vary (subtle).

Pls show example for new people

mashb1t commented 8 months ago

Fooocus does not support recolor controlnet adapters. If you want to try the way described by @rvdd1962, you can certainly try to make it work, but i wasn't able to do so with vary (subtle), even with high prompt strength of 2. screencapture-127-0-0-1-7865-2023-12-28-21_30_21 It only worked with vary (strong), but at this point it's basically not recoloring anymore but completely changing the image. screencapture-127-0-0-1-7865-2023-12-28-21_30_40

You might be better off using the fork https://github.com/fenneishi/Fooocus-ControlNet-SDXL?tab=readme-ov-file#Recolor. Your feedback is welcome!

rvdd1962 commented 8 months ago

Uhm, its still possible to use just fooocus alone to pull off a recoloring of vintage photo's. See results below. I didn't get it to work with image variation (img2img) subtle or strong either. But i was able to get some good results with using canny and a good prompt. see attachments below 4 settings b w-man-with-head Coloring old b w photo's ipnet-colorize-setting ipnet-colorize-setting-2 ipnet-colorize-setting-3 2023-12-29_12-04-06_9194 2023-12-29_10-51-07_2968 ![Uploading 2023-12-29_12-18-29_5264.png…]()

rvdd1962 commented 8 months ago

That one was simple, this famous B&W photo is a pain to convert into color because of the complex scene ;-/ great_black_and_white_photos_43

rvdd1962 commented 8 months ago

Like uhm ... maybe better use Photoshop for that image ;-) 2023-12-29_12-45-23_9581 2023-12-29_13-07-37_3338 2023-12-29_13-23-22_7774 2023-12-29_13-28-20_5857

Amit30swgoh commented 8 months ago

thank u for the tips.. the thing is that I'd like to restore an old b&w blurry and scratch photo of my grandpa who passed away and I would like to create a replica of his face head and body ... just fix the photo as it was taken today instead of 80+ years ago...

mashb1t commented 8 months ago

@Amit30swgoh

You might be better off using the fork https://github.com/fenneishi/Fooocus-ControlNet-SDXL?tab=readme-ov-file#Recolor.

At least for now and until Fooocus supports recoloring natively.

Amit30swgoh commented 8 months ago

mashb1t image thought i can talk with you there :) Amaing Gallery you have but i wish i could give likes and comments there https://gallery.mashb1t.de/gallery

Amit30swgoh commented 8 months ago

@Amit30swgoh

You might be better off using the fork https://github.com/fenneishi/Fooocus-ControlNet-SDXL?tab=readme-ov-file#Recolor.

At least for now and until Fooocus supports recoloring natively.

Thanks again.

rvdd1962 commented 8 months ago

Just send me that photo of your grandpa, I'll restore it 4 you.

---------- Forwarded message --------- Van: Manuel Schmid @.> Date: za 30 dec. 2023 10:48 Subject: Re: [lllyasviel/Fooocus] Restoring and colorizing old photos (Issue #1490) To: lllyasviel/Fooocus @.> Cc: rvdd1962 @.>, Mention @.>

@Amit30swgoh https://github.com/Amit30swgoh

You might be better off using the fork https://github.com/fenneishi/Fooocus-ControlNet-SDXL?tab=readme-ov-file#Recolor .

At least for now and until Fooocus supports recoloring natively.

— Reply to this email directly, view it on GitHub https://github.com/lllyasviel/Fooocus/issues/1490#issuecomment-1872494465, or unsubscribe https://github.com/notifications/unsubscribe-auth/BDWIIGER2BMR3TESJAMTYNDYL7PQRAVCNFSM6AAAAABAZUDS3SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZSGQ4TINBWGU . You are receiving this because you were mentioned.Message ID: @.***>

Amit30swgoh commented 8 months ago

Just send me that photo of your grandpa, I'll restore it 4 you. ---------- Forwarded message --------- Van: Manuel Schmid @.> Date: za 30 dec. 2023 10:48 Subject: Re: [lllyasviel/Fooocus] Restoring and colorizing old photos (Issue #1490) To: lllyasviel/Fooocus @.> Cc: rvdd1962 @.>, Mention @.> @Amit30swgoh https://github.com/Amit30swgoh You might be better off using the fork https://github.com/fenneishi/Fooocus-ControlNet-SDXL?tab=readme-ov-file#Recolor . At least for now and until Fooocus supports recoloring natively. — Reply to this email directly, view it on GitHub <#1490 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/BDWIIGER2BMR3TESJAMTYNDYL7PQRAVCNFSM6AAAAABAZUDS3SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZSGQ4TINBWGU . You are receiving this because you were mentioned.Message ID: @.***>

Wow ty so much it wont be easy at all tho IMG-20201226-WA0001

nux1111 commented 8 months ago

Fooocus 2 1 856 I gave it a shot. Used recolor in comfyui, upscaled and then used inpainted the environment and suit in Fooocus.

Amit30swgoh commented 8 months ago

Fooocus 2 1 856 I gave it a shot. Used recolor in comfyui, upscaled and then used inpainted the environment and suit in Fooocus.

Wow ty so much!

Amit30swgoh commented 8 months ago

Here is the restored image in B&W, I will run this through Fooocus to see if i can colorize it for you. Nice work Beamhi, thx 4 helping. Restore-grandpa

And who said that Magicans are not real?!

Amit30swgoh commented 8 months ago

Here is the restored image in B&W, I will run this through Fooocus to see if i can colorize it for you. Nice work Beamhi, thx 4 helping. Restore-grandpa

And who said that Magicans are not real?!

If he was alive to see this...

rvdd1962 commented 8 months ago

@Beamhi you used Topaz AI ;-0 to restore that original image of grandpa's. Nice. @Amit30swgoh here is the patched photo. Happy new year to All, thx for helping out @Amit30swgoh guy's! Exif

rvdd1962 commented 8 months ago

Restored-grandpa-full-1

Amit30swgoh commented 8 months ago

Restored-grandpa-full-1

Ty friend ty again looks amazing

nux1111 commented 8 months ago

niceee work @rvdd1962 didn't have time to further clean the face. this was the starting point ComfyUI temp (37)

nux1111 commented 8 months ago

@Beamhi you used Topaz AI ;-0 to restore that original image of grandpa's. Nice. @Amit30swgoh here is the patched photo. Happy new year to All, thx for helping out @Amit30swgoh guy's! Exif

I used it mainly for the upscale. comfy did the recolor and final inpainting in fooocus

mashb1t commented 8 months ago

Great to have such supportive members in our community, thank you very much and happy new year 2024!

Amit30swgoh commented 8 months ago

Great to have such supportive members in our community, thank you very much and happy new year 2024!

Indeed great people here.

NHLOCAL commented 1 month ago

Has anything changed in the past six months?

tazztone commented 1 month ago

tried some topaz photo AI face restore and sharpening on that and might as well share it TPAI_Clipboard_26f1eadbfce1472c31cfd6e33dcc6fc8-topaz-faceai-sharpen