How do you get a coloured image from a greyscale one? #63

Open
opened 2026-01-29 21:40:32 +00:00 by claunia · 3 comments
Owner

Originally created by @mdigiorgio on GitHub (Sep 4, 2021).

Hello,

I've tried to run inference using the pre-trained model you provide on greyscale images and was expecting something along the lines the result attached on README, but what I get is just an enhancement (a good one) of quality of the image. How did you get the model to transform that greyscale portrait into a coloured one?

Thanks for your help and really great work!

Originally created by @mdigiorgio on GitHub (Sep 4, 2021). Hello, I've tried to run inference using the pre-trained model you provide on greyscale images and was expecting something along the lines the result attached on README, but what I get is just an enhancement (a good one) of quality of the image. How did you get the model to transform that greyscale portrait into a coloured one? Thanks for your help and really great work!
Author
Owner

@berry120 commented on GitHub (Sep 8, 2021):

Just to check - are you using the GFPGANv1.pth model or the GFPGANCleanv1-NoCE-C2.pth? The readme instructions use the latter, which has no colorisation (but also doesn't require CUDA.)

@berry120 commented on GitHub (Sep 8, 2021): Just to check - are you using the `GFPGANv1.pth` model or the `GFPGANCleanv1-NoCE-C2.pth`? The readme instructions use the latter, which has no colorisation (but also doesn't require CUDA.)
Author
Owner

@mdigiorgio commented on GitHub (Sep 8, 2021):

Hi @berry120 ,

I see, thanks a lot for the information. I'll try with the other model then :).

@mdigiorgio commented on GitHub (Sep 8, 2021): Hi @berry120 , I see, thanks a lot for the information. I'll try with the other model then :).
Author
Owner

@celikmustafa89 commented on GitHub (Dec 13, 2021):

how about the whole image restoration. latter one only colorize the face part of the image, rest is still grayscale.
how can I colorize the whole image?

@celikmustafa89 commented on GitHub (Dec 13, 2021): how about the whole image restoration. latter one only colorize the face part of the image, rest is still grayscale. how can I colorize the whole image?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: TencentARC/GFPGAN#63