Closed christopher-beckham closed 6 years ago
This is strange. After the conversion, the image should be still 3 channel RGB image. Have you checked if the image is read correctly?
I ran a script that read all the images in and verified their # channels was == 3, and it worked. I used this exact same line: cv2.cvtColor(imread(file), cv2.COLOR_BGR2RGB)
. Indeed a mystery.
EDIT: it turns out not all the images were converted. :O I'm running the convert script again and making sure this time it processes everything.
Never mind, turns out that the problem.
Thanks!
I seem to be getting this error. AFAIK I correctly did the CelebA pre-processing by first extracting the original CelebA data and running the resize/crop script which generates the
img_align_crop_resize_celeba
directory.Here is the error:
I think I know what the error means: it seems to be expecting 3/4 channels for a particular image (is it trying to convert a b/w image to RGB??), but I'm just wondering why I'm getting this issue in the first place since nobody else has raised it here!
I'm using the OpenCV suggested in USAGE.md:
conda install -y -c menpo opencv