Load Image Classification Dataset from Local 
MEMBER
Hi ! Is this folder structure a standard, a bit like imagenet ?
In this case maybe we can consider having a dataset loader for cifar-like, imagenet-like, squad-like, conll-like etc. datasets ?
```python
from datasets import load_dataset

my_custom_cifar = load_dataset("cifar_like", data_dir="path/to/data/dir")
```

Let me know what you think
2021-06-16T11:30:13Z
https://github.com/huggingface/datasets/issues/2508#issuecomment-862301765
https://api.github.com/repos/huggingface/datasets/issues/2508
MDEyOklzc3VlQ29tbWVudDg2MjMwMTc2NQ==
https://api.github.com/repos/huggingface/datasets/issues/comments/862301765/reactions
2021-06-16T11:30:13Z
https://api.github.com/repos/huggingface/datasets/issues/comments/862301765
https://avatars.githubusercontent.com/u/42851186?v=4
https://api.github.com/users/lhoestq/events{/privacy}
https://api.github.com/users/lhoestq/followers
https://api.github.com/users/lhoestq/following{/other_user}
https://api.github.com/users/lhoestq/gists{/gist_id}
https://github.com/lhoestq
lhoestq
MDQ6VXNlcjQyODUxMTg2
https://api.github.com/users/lhoestq/orgs
https://api.github.com/users/lhoestq/received_events
https://api.github.com/users/lhoestq/repos
https://api.github.com/users/lhoestq/starred{/owner}{/repo}
https://api.github.com/users/lhoestq/subscriptions
User
https://api.github.com/users/lhoestq
public
NONE
Yep that would be sweet - closing for now as we found a workaround. 
2021-06-16T13:59:10Z
https://github.com/huggingface/datasets/issues/2508#issuecomment-862405027
https://api.github.com/repos/huggingface/datasets/issues/2508
MDEyOklzc3VlQ29tbWVudDg2MjQwNTAyNw==
https://api.github.com/repos/huggingface/datasets/issues/comments/862405027/reactions
2021-06-16T13:59:10Z
https://api.github.com/repos/huggingface/datasets/issues/comments/862405027
https://avatars.githubusercontent.com/u/8428198?v=4
https://api.github.com/users/Jacobsolawetz/events{/privacy}
https://api.github.com/users/Jacobsolawetz/followers
https://api.github.com/users/Jacobsolawetz/following{/other_user}
https://api.github.com/users/Jacobsolawetz/gists{/gist_id}
https://github.com/Jacobsolawetz
Jacobsolawetz
MDQ6VXNlcjg0MjgxOTg=
https://api.github.com/users/Jacobsolawetz/orgs
https://api.github.com/users/Jacobsolawetz/received_events
https://api.github.com/users/Jacobsolawetz/repos
https://api.github.com/users/Jacobsolawetz/starred{/owner}{/repo}
https://api.github.com/users/Jacobsolawetz/subscriptions
User
https://api.github.com/users/Jacobsolawetz
public
CONTRIBUTOR
@lhoestq I think we'll want a generic `image-folder` dataset (same as 'imagenet-like'). This is like `torchvision.datasets.ImageFolder`, and is something vision folks are used to seeing.
2021-06-24T05:39:59Z
https://github.com/huggingface/datasets/issues/2508#issuecomment-867350816
https://api.github.com/repos/huggingface/datasets/issues/2508
MDEyOklzc3VlQ29tbWVudDg2NzM1MDgxNg==
https://api.github.com/repos/huggingface/datasets/issues/comments/867350816/reactions
2021-06-24T05:39:59Z
https://api.github.com/repos/huggingface/datasets/issues/comments/867350816
https://avatars.githubusercontent.com/u/32437151?v=4
https://api.github.com/users/nateraw/events{/privacy}
https://api.github.com/users/nateraw/followers
https://api.github.com/users/nateraw/following{/other_user}
https://api.github.com/users/nateraw/gists{/gist_id}
https://github.com/nateraw
nateraw
MDQ6VXNlcjMyNDM3MTUx
https://api.github.com/users/nateraw/orgs
https://api.github.com/users/nateraw/received_events
https://api.github.com/users/nateraw/repos
https://api.github.com/users/nateraw/starred{/owner}{/repo}
https://api.github.com/users/nateraw/subscriptions
User
https://api.github.com/users/nateraw
public
CONTRIBUTOR
Opening this back up, since I'm planning on tackling this. Already posted a quick version of it on my account on the hub.

```python
from datasets import load_dataset

ds = load_dataset('nateraw/image-folder', data_files='PetImages/')
```
2021-07-12T18:03:44Z
https://github.com/huggingface/datasets/issues/2508#issuecomment-878482153
https://api.github.com/repos/huggingface/datasets/issues/2508
MDEyOklzc3VlQ29tbWVudDg3ODQ4MjE1Mw==
https://api.github.com/repos/huggingface/datasets/issues/comments/878482153/reactions
2021-07-12T18:03:44Z
https://api.github.com/repos/huggingface/datasets/issues/comments/878482153
https://avatars.githubusercontent.com/u/32437151?v=4
https://api.github.com/users/nateraw/events{/privacy}
https://api.github.com/users/nateraw/followers
https://api.github.com/users/nateraw/following{/other_user}
https://api.github.com/users/nateraw/gists{/gist_id}
https://github.com/nateraw
nateraw
MDQ6VXNlcjMyNDM3MTUx
https://api.github.com/users/nateraw/orgs
https://api.github.com/users/nateraw/received_events
https://api.github.com/users/nateraw/repos
https://api.github.com/users/nateraw/starred{/owner}{/repo}
https://api.github.com/users/nateraw/subscriptions
User
https://api.github.com/users/nateraw
public
NONE
Bumping this one following our recent discussion @mariosasko @nateraw :)
2022-02-09T15:32:25Z
https://github.com/huggingface/datasets/issues/2508#issuecomment-1033887744
https://api.github.com/repos/huggingface/datasets/issues/2508
IC_kwDODunzps49n-AA
https://api.github.com/repos/huggingface/datasets/issues/comments/1033887744/reactions
2022-02-09T15:32:25Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1033887744
https://avatars.githubusercontent.com/u/3436143?v=4
https://api.github.com/users/juliensimon/events{/privacy}
https://api.github.com/users/juliensimon/followers
https://api.github.com/users/juliensimon/following{/other_user}
https://api.github.com/users/juliensimon/gists{/gist_id}
https://github.com/juliensimon
juliensimon
MDQ6VXNlcjM0MzYxNDM=
https://api.github.com/users/juliensimon/orgs
https://api.github.com/users/juliensimon/received_events
https://api.github.com/users/juliensimon/repos
https://api.github.com/users/juliensimon/starred{/owner}{/repo}
https://api.github.com/users/juliensimon/subscriptions
User
https://api.github.com/users/juliensimon
public
**Is your feature request related to a problem? Please describe.**
Yes - we would like to load an image classification dataset with datasets without having to write a custom data loader.

**Describe the solution you'd like**

Given a folder structure with images of each class in each folder, the ability to load these folders into a HuggingFace dataset like "cifar10".

**Describe alternatives you've considered**

Implement ViT training outside of the HuggingFace Trainer and without datasets (we did this but prefer to stay on the main path)

Write custom data loader logic

**Additional context**

We're training ViT on custom dataset
