About the rgb results from from Degradation Removal. #50

Closed
opened 2026-01-29 21:39:41 +00:00 by claunia · 1 comment
Owner

Originally created by @NNNNAI on GitHub (Aug 15, 2021).

Thanks for sharing your wonderful work!!!!!!
I have try to visualize the rgb restoration result (512*512) for the degradation removal module by using the the code below.

    _, output_list = gfpgan(cropped_face_t, return_rgb=True)
    output = output_list[-1]
    # convert to image
    rec_face = tensor2img(output.squeeze(0), rgb2bgr=True, min_max=(-1, 1))

But I got such a results, the color of the restoration result from degradation removal module is different from the original image, is this normal? Many thanks~, have a nice day.
image

Originally created by @NNNNAI on GitHub (Aug 15, 2021). Thanks for sharing your wonderful work!!!!!! I have try to visualize the rgb restoration result (512*512) for the degradation removal module by using the the code below. ``` _, output_list = gfpgan(cropped_face_t, return_rgb=True) output = output_list[-1] # convert to image rec_face = tensor2img(output.squeeze(0), rgb2bgr=True, min_max=(-1, 1)) ``` But I got such a results, the color of the restoration result from degradation removal module is different from the original image, is this normal? Many thanks~, have a nice day. ![image](https://user-images.githubusercontent.com/30747212/129481306-021d7c76-447e-4357-905c-e6d858ee3c45.png)
Author
Owner

@xinntao commented on GitHub (Aug 18, 2021):

Hi @NNNNAI

As we do not force the output of the degradation model to be a normal image. So, this phenomenon is normal.

@xinntao commented on GitHub (Aug 18, 2021): Hi @NNNNAI As we do not force the output of the degradation model to be a normal image. So, this phenomenon is normal.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: TencentARC/GFPGAN#50