chainercv icon indicating copy to clipboard operation
chainercv copied to clipboard

DirectoryParsingLabelDataset fails to read images with an alpha channel

Open yoshnary opened this issue 4 years ago • 0 comments

When I tried the ImageNet training example, it failed due to DirectoryParsingLabelDataset. ImageNet 2012 dataset has an image with an alpha channel, and DirectoryParsingLabelDataset cannot read it. I dealt with it by adding alpha='ignore' to the following function call. https://github.com/chainer/chainercv/blob/ca45a7ff2f1f6fb45fbc431c8b5bb0f8d646be0f/chainercv/datasets/directory_parsing_label_dataset.py#L148 Could you fix it in a proper way?

yoshnary avatar Sep 12 '19 09:09 yoshnary