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

numpy.core._exceptions._ArrayMemoryError: Unable to allocate 2.73 TiB for an array with shape (124994103978,) and data type [('sample_id', '<u8'), ('ptr', '<u8'), ('size', '<u8’)] #21

Open
TheDarkKnight-21th opened this issue Feb 27, 2024 · 0 comments

Comments

@TheDarkKnight-21th
Copy link

TheDarkKnight-21th commented Feb 27, 2024

i wanna train on imagenet21k, not imagenet1k. so i downloaded the imagenet21k(winter) on the official site.(imagenet official site)

and then i ran the "write_imagenet.sh" with default argument value (500 0.50 90) , setting the dataset imagenet21k(winter).

finally, i run the train_imagenet.py. and there is an error.

"numpy.core._exceptions._ArrayMemoryError: Unable to allocate 2.73 TiB for an array with shape (124994103978,) and data type [('sample_id', '<u8'), ('ptr', '<u8'), ('size', '<u8’)] "

what is that error? why does that error occur? (when i make a dataset with imagenet1k and run the train, there is not any error.)
Is there any way to learn with imagenet21k?

(ref : The ffcv dataset that is made by "write_imagenet.sh" size is 2.73 TB.)

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

1 participant