# Problem loading data from disk

**URL:** <https://discuss.huggingface.co/t/problem-loading-data-from-disk/30096>\
**Category:** Beginners\
**Created:** [January 20, 2023, 9:26pm UTC](https://discuss.huggingface.co/t/problem-loading-data-from-disk/30096 "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](https://discuss.huggingface.co/u/llevkova)\
**Post date:** [January 20, 2023, 9:26pm UTC](https://discuss.huggingface.co/t/problem-loading-data-from-disk/30096/1 "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](https://discuss.huggingface.co/u/Yedson54)\
**Post date:** [August 9, 2024, 9:15am UTC](https://discuss.huggingface.co/t/problem-loading-data-from-disk/30096/2 "2024-08-09T09:15:42Z")

</div>

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