# Using imagefolder data

**URL:** <https://discuss.huggingface.co/t/using-imagefolder-data/54265>\
**Category:** 🤗Datasets\
**Created:** [September 10, 2023, 12:49am UTC](https://discuss.huggingface.co/t/using-imagefolder-data/54265 "2023-09-10T00:49:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mxa](https://avatars.discourse-cdn.com/v4/letter/m/5f8ce5/32.png) [@Mxa](https://discuss.huggingface.co/u/Mxa)\
**Post date:** [September 10, 2023, 12:49am UTC](https://discuss.huggingface.co/t/using-imagefolder-data/54265/1 "2023-09-10T00:49:24Z")

</div>

So, I am using this code here: dataset = load\_dataset(‘imagefolder’, data\_dir=‘/content/drive/MyDrive/Dataset’)

And my model is freezed there not loading data at all. Can you guys help me with it. My Image folder as subfolder train and validation, which also have two folder real and fake containing images they are basically my classes
