[feat] Add ImageNet dataset
NONE
_The documentation is not available anymore as the PR was closed or merged._
2022-04-19T06:14:02Z
https://github.com/huggingface/datasets/pull/4178#issuecomment-1102132588
https://api.github.com/repos/huggingface/datasets/issues/4178
IC_kwDODunzps5BsTVs
https://api.github.com/repos/huggingface/datasets/issues/comments/1102132588/reactions
2022-04-29T21:43:59Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1102132588
https://avatars.githubusercontent.com/u/99929124?v=4
https://api.github.com/users/HuggingFaceDocBuilderDev/events{/privacy}
https://api.github.com/users/HuggingFaceDocBuilderDev/followers
https://api.github.com/users/HuggingFaceDocBuilderDev/following{/other_user}
https://api.github.com/users/HuggingFaceDocBuilderDev/gists{/gist_id}
https://github.com/HuggingFaceDocBuilderDev
HuggingFaceDocBuilderDev
U_kgDOBfTMJA
https://api.github.com/users/HuggingFaceDocBuilderDev/orgs
https://api.github.com/users/HuggingFaceDocBuilderDev/received_events
https://api.github.com/users/HuggingFaceDocBuilderDev/repos
https://api.github.com/users/HuggingFaceDocBuilderDev/starred{/owner}{/repo}
https://api.github.com/users/HuggingFaceDocBuilderDev/subscriptions
User
https://api.github.com/users/HuggingFaceDocBuilderDev
public
CONTRIBUTOR
Thanks for the comments. I believe I have addressed all of them and also decreased the size of the dummy data file, so it should be ready for a re-review. I also made a change to allow adding synset mapping and valprep script in config in case we add ImageNet 21k some time later. 
2022-04-20T00:34:53Z
https://github.com/huggingface/datasets/pull/4178#issuecomment-1103301212
https://api.github.com/repos/huggingface/datasets/issues/4178
IC_kwDODunzps5Bwwpc
https://api.github.com/repos/huggingface/datasets/issues/comments/1103301212/reactions
2022-04-20T00:34:53Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1103301212
https://avatars.githubusercontent.com/u/3616806?v=4
https://api.github.com/users/apsdehal/events{/privacy}
https://api.github.com/users/apsdehal/followers
https://api.github.com/users/apsdehal/following{/other_user}
https://api.github.com/users/apsdehal/gists{/gist_id}
https://github.com/apsdehal
apsdehal
MDQ6VXNlcjM2MTY4MDY=
https://api.github.com/users/apsdehal/orgs
https://api.github.com/users/apsdehal/received_events
https://api.github.com/users/apsdehal/repos
https://api.github.com/users/apsdehal/starred{/owner}{/repo}
https://api.github.com/users/apsdehal/subscriptions
User
https://api.github.com/users/apsdehal
public
CONTRIBUTOR
@lhoestq I have updated the PR to address all of the review comments.
2022-04-21T20:47:13Z
https://github.com/huggingface/datasets/pull/4178#issuecomment-1105743300
https://api.github.com/repos/huggingface/datasets/issues/4178
IC_kwDODunzps5B6E3E
https://api.github.com/repos/huggingface/datasets/issues/comments/1105743300/reactions
2022-04-21T20:47:13Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1105743300
https://avatars.githubusercontent.com/u/3616806?v=4
https://api.github.com/users/apsdehal/events{/privacy}
https://api.github.com/users/apsdehal/followers
https://api.github.com/users/apsdehal/following{/other_user}
https://api.github.com/users/apsdehal/gists{/gist_id}
https://github.com/apsdehal
apsdehal
MDQ6VXNlcjM2MTY4MDY=
https://api.github.com/users/apsdehal/orgs
https://api.github.com/users/apsdehal/received_events
https://api.github.com/users/apsdehal/repos
https://api.github.com/users/apsdehal/starred{/owner}{/repo}
https://api.github.com/users/apsdehal/subscriptions
User
https://api.github.com/users/apsdehal
public
To use the dataset download the tar file
[imagenet_object_localization_patched2019.tar.gz](https://www.kaggle.com/competitions/imagenet-object-localization-challenge/data?select=imagenet_object_localization_patched2019.tar.gz) from Kaggle and then point the datasets library to it by using:

```py
from datasets import load_dataset

dataset = load_dataset("imagenet",
data_dir="/path/to/imagenet_object_localization_patched2019.tar.gz")
```

Currently train and validation splits are supported.