Fooocus icon indicating copy to clipboard operation
Fooocus copied to clipboard

Restoring and colorizing old photos

Open aliwithgrain opened this issue 1 year ago • 6 comments

Is restoring and colorizing old photos possible with Fooocus?

aliwithgrain avatar Dec 18 '23 14:12 aliwithgrain

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).

rvdd1962 avatar Dec 18 '23 15:12 rvdd1962

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

Amit30swgoh avatar Dec 28 '23 17:12 Amit30swgoh

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!

mashb1t avatar Dec 28 '23 20:12 mashb1t

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 avatar Dec 29 '23 21:12 rvdd1962

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 avatar Dec 29 '23 21:12 rvdd1962

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

rvdd1962 avatar Dec 29 '23 22:12 rvdd1962

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...

Amit30swgoh avatar Dec 30 '23 08:12 Amit30swgoh

@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.

mashb1t avatar Dec 30 '23 09:12 mashb1t

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 avatar Dec 30 '23 10:12 Amit30swgoh

@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.

Amit30swgoh avatar Dec 30 '23 10:12 Amit30swgoh

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: @.***>

rvdd1962 avatar Dec 30 '23 12:12 rvdd1962

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

Amit30swgoh avatar Dec 30 '23 12:12 Amit30swgoh

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

nux1111 avatar Dec 30 '23 13:12 nux1111

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 avatar Dec 30 '23 14:12 Amit30swgoh

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 avatar Dec 30 '23 15:12 Amit30swgoh

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...

Amit30swgoh avatar Dec 30 '23 15:12 Amit30swgoh

@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 avatar Dec 31 '23 18:12 rvdd1962

Restored-grandpa-full-1

rvdd1962 avatar Dec 31 '23 18:12 rvdd1962

Restored-grandpa-full-1

Ty friend ty again looks amazing

Amit30swgoh avatar Dec 31 '23 18:12 Amit30swgoh

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

nux1111 avatar Dec 31 '23 20:12 nux1111

@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

nux1111 avatar Dec 31 '23 20:12 nux1111

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

mashb1t avatar Jan 01 '24 02:01 mashb1t

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

Indeed great people here.

Amit30swgoh avatar Jan 01 '24 08:01 Amit30swgoh

Has anything changed in the past six months?

NHLOCAL avatar Jul 19 '24 00:07 NHLOCAL

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

tazztone avatar Jul 19 '24 08:07 tazztone