# Problem loading data from disk

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fproblem-loading-data-from-disk%2F30096%3E%5C
**Category:** Beginners\
**Created:** [January 20, 2023, 9:26pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fproblem-loading-data-from-disk%2F30096 "2023-01-20T21:26:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![llevkova](https://avatars.discourse-cdn.com/v4/letter/l/a88e4f/32.png) [@llevkova](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fllevkova)%5C
**Post date:** [January 20, 2023, 9:26pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fproblem-loading-data-from-disk%2F30096%2F1 "2023-01-20T21:26:36Z")

</div>

I have downloaded imagenet-1k from the hub. I am trying to load it with  
ds = load\_dataset(‘/data/imagenet-1k/’), but it seems it does not use the local copy in the directory I give it and starts downloading it allover again. How do I make it use the my local imagenet-1k?

---

<div class="post-metadata">

**Author:** ![Yedson54](https://avatars.discourse-cdn.com/v4/letter/y/dc4da7/32.png) [@Yedson54](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FYedson54)%5C
**Post date:** [August 9, 2024, 9:15am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fproblem-loading-data-from-disk%2F30096%2F2 "2024-08-09T09:15:42Z")

</div>

The function to be used is `load_from_disk` instead of `load_dataset`.
