Skip to content
This repository has been archived by the owner on Jul 2, 2021. It is now read-only.

DirectoryParsingLabelDataset fails to read images with an alpha channel #926

Open
yoshnary opened this issue Sep 12, 2019 · 0 comments
Open

Comments

@yoshnary
Copy link

yoshnary commented Sep 12, 2019

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.

return read_image(self.img_paths[i], color=self.color)

Could you fix it in a proper way?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant