Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading just one particular split is not possible for imagenet-1k #6793

Open
PaulPSta opened this issue Apr 8, 2024 · 1 comment
Open

Loading just one particular split is not possible for imagenet-1k #6793

PaulPSta opened this issue Apr 8, 2024 · 1 comment

Comments

@PaulPSta
Copy link

PaulPSta commented Apr 8, 2024

Describe the bug

I'd expect the following code to download just the validation split but instead I get all data on my disk (train, test and validation splits)

`
from datasets import load_dataset

dataset = load_dataset("imagenet-1k", split="validation", trust_remote_code=True)
`

Is it expected to work like that?

Steps to reproduce the bug

  1. Install the required libraries (python, datasets, huggingface_hub)
  2. Login using huggingface cli
  3. Run the code in the description

Expected behavior

Just a single (validation) split should be downloaded.

Environment info

python: 3.12.2
datasets: 2.18.0
huggingface_hub: 0.22.2

@fxmarty-amd
Copy link

+1

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

No branches or pull requests

2 participants