Can't load png dataset with 4 channel (RGBA)
COLLABORATOR
Hi! Can you please share the directory structure of your image folder and the `load_dataset` call? We decode images with Pillow, and Pillow supports RGBA PNGs, so this shouldn't be a problem.


2023-01-17T19:15:57Z
https://github.com/huggingface/datasets/issues/5437#issuecomment-1385925366
https://api.github.com/repos/huggingface/datasets/issues/5437
IC_kwDODunzps5Sm4r2
https://api.github.com/repos/huggingface/datasets/issues/comments/1385925366/reactions
2023-01-17T19:15:57Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1385925366
https://avatars.githubusercontent.com/u/47462742?v=4
https://api.github.com/users/mariosasko/events{/privacy}
https://api.github.com/users/mariosasko/followers
https://api.github.com/users/mariosasko/following{/other_user}
https://api.github.com/users/mariosasko/gists{/gist_id}
https://github.com/mariosasko
mariosasko
MDQ6VXNlcjQ3NDYyNzQy
https://api.github.com/users/mariosasko/orgs
https://api.github.com/users/mariosasko/received_events
https://api.github.com/users/mariosasko/repos
https://api.github.com/users/mariosasko/starred{/owner}{/repo}
https://api.github.com/users/mariosasko/subscriptions
User
https://api.github.com/users/mariosasko
public
NONE
> Hi! Can you please share the directory structure of your image folder and the `load_dataset` call? We decode images with Pillow, and Pillow supports RGBA PNGs, so this shouldn't be a problem.
> 
> 

I have only 1 folder that I use in the load_dataset function with the name "IMGDATA" and all my 9000 images are located in this folder.
`
from datasets import load_dataset

dataset = load_dataset("IMGDATA")
`
At the same time, using another data set with images consisting of 3 RGB channels, everything works
2023-01-18T09:51:15Z
https://github.com/huggingface/datasets/issues/5437#issuecomment-1386772621
https://api.github.com/repos/huggingface/datasets/issues/5437
IC_kwDODunzps5SqHiN
https://api.github.com/repos/huggingface/datasets/issues/comments/1386772621/reactions
2023-01-18T09:51:15Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1386772621
https://avatars.githubusercontent.com/u/41611046?v=4
https://api.github.com/users/WiNE-iNEFF/events{/privacy}
https://api.github.com/users/WiNE-iNEFF/followers
https://api.github.com/users/WiNE-iNEFF/following{/other_user}
https://api.github.com/users/WiNE-iNEFF/gists{/gist_id}
https://github.com/WiNE-iNEFF
WiNE-iNEFF
MDQ6VXNlcjQxNjExMDQ2
https://api.github.com/users/WiNE-iNEFF/orgs
https://api.github.com/users/WiNE-iNEFF/received_events
https://api.github.com/users/WiNE-iNEFF/repos
https://api.github.com/users/WiNE-iNEFF/starred{/owner}{/repo}
https://api.github.com/users/WiNE-iNEFF/subscriptions
User
https://api.github.com/users/WiNE-iNEFF
public
NONE
Okay, I figured out what was wrong. When uploading my dataset via Google Drive, the images broke and Pillow couldn't open them. As a result, I solved the problem by downloading the ZIP archive
2023-01-18T18:29:13Z
https://github.com/huggingface/datasets/issues/5437#issuecomment-1387527257
https://api.github.com/repos/huggingface/datasets/issues/5437
IC_kwDODunzps5Ss_xZ
https://api.github.com/repos/huggingface/datasets/issues/comments/1387527257/reactions
2023-01-18T18:29:13Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1387527257
https://avatars.githubusercontent.com/u/41611046?v=4
https://api.github.com/users/WiNE-iNEFF/events{/privacy}
https://api.github.com/users/WiNE-iNEFF/followers
https://api.github.com/users/WiNE-iNEFF/following{/other_user}
https://api.github.com/users/WiNE-iNEFF/gists{/gist_id}
https://github.com/WiNE-iNEFF
WiNE-iNEFF
MDQ6VXNlcjQxNjExMDQ2
https://api.github.com/users/WiNE-iNEFF/orgs
https://api.github.com/users/WiNE-iNEFF/received_events
https://api.github.com/users/WiNE-iNEFF/repos
https://api.github.com/users/WiNE-iNEFF/starred{/owner}{/repo}
https://api.github.com/users/WiNE-iNEFF/subscriptions
User
https://api.github.com/users/WiNE-iNEFF
public
I try to create dataset which contains about 9000 png images 64x64 in size, and they are all 4-channel (RGBA). When trying to use load_dataset() then a dataset is created from only 2 images. What exactly interferes I can not understand.![Screenshot_20230117_212213.jpg](https://user-images.githubusercontent.com/41611046/212980147-9aa68e30-76e9-4b61-a937-c2fdabd56564.jpg)