Closed Walstruzz closed 5 years ago
I had already checked the images in faces_emore/cfp_fp.bin
. The format of the image saved in this matrix is indeed RGB
.
I had already checked the images in
faces_emore/cfp_fp.bin
. The format of the image saved in this matrix is indeedRGB
.
thanks, I have met the same problem. Got solved by your tip.
I download CASIA-Webface (10K ids/0.5M images) from the original post
In script
data_pipe.py
, line 96, the image is saved byPIL.Image
,which encoding image toRGB
. I check the result after runningprepare_data.py
, most of the images are red.Obviously, modify
img = Image.fromarray(img)
toimg = Image.fromarray(img[:, :, ::-1])
would fix this problem, but I want to know if you design it deliberately, e.g., for post-processing or something else...