# Traceback while loading image dataset

**URL:** <https://discuss.huggingface.co/t/traceback-while-loading-image-dataset/20590>\
**Category:** 🤗Datasets\
**Created:** [July 19, 2022, 6:24pm UTC](https://discuss.huggingface.co/t/traceback-while-loading-image-dataset/20590 "2022-07-19T18:24:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheNoob3131](https://avatars.discourse-cdn.com/v4/letter/t/7feea3/32.png) [@TheNoob3131](https://discuss.huggingface.co/u/TheNoob3131)\
**Post date:** [July 19, 2022, 6:24pm UTC](https://discuss.huggingface.co/t/traceback-while-loading-image-dataset/20590/1 "2022-07-19T18:24:06Z")

</div>

[![image](https://us1.discourse-cdn.com/hellohellohello/original/2X/1/14b4c59f1ba83749bdbc1e84e2c0f9e66b00d87e.png)](https://user-images.githubusercontent.com/53668030/179815591-d75fa7d3-3122-485f-a852-b06a68909066.png)

So my dataset is public in the Huggingface Hub, but when I try to load it using the load\_dataset command, it shows that it is downloading the files, but throws a Traceback. When I went to my directory to see if the files were downloaded, the folder was blank.

Here is the error below:  
ValueError Traceback (most recent call last)  
Input In [8], in \<cell line: 3\>()  
1 from datasets import load\_dataset  
----\> 3 dataset = load\_dataset(“TheNoob3131/mosquito-data”, split=“train”)

File ~\Anaconda3\lib\site-packages\datasets\load.py:1679, in load\_dataset(path, name, data\_dir, data\_files, split, cache\_dir, features, download\_config, download\_mode, ignore\_verifications, keep\_in\_memory, save\_infos, revision, use\_auth\_token, task, streaming, \*\*config\_kwargs)  
1676 try\_from\_hf\_gcs = path not in \_PACKAGED\_DATASETS\_MODULES  
1678 # Download and prepare data  
 → 1679 builder\_instance.download\_and\_prepare(  
1680 download\_config=download\_config,  
1681 download\_mode=download\_mode,  
1682 ignore\_verifications=ignore\_verifications,  
1683 try\_from\_hf\_gcs=try\_from\_hf\_gcs,  
1684 use\_auth\_token=use\_auth\_token,  
1685 )  
1687 # Build dataset for splits  
1688 keep\_in\_memory = (  
1689 keep\_in\_memory if keep\_in\_memory is not None else is\_small\_dataset(builder\_instance.info.dataset\_size)  
1690 )

Is the dataset in the wrong format or is there some security permission that I should enable?

---

<div class="post-metadata">

**Author:** ![nielsr](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/nielsr/32/39617_2.png) [@nielsr](https://discuss.huggingface.co/u/nielsr)\
**Post date:** [July 20, 2022, 9:22am UTC](https://discuss.huggingface.co/t/traceback-while-loading-image-dataset/20590/2 "2022-07-20T09:22:11Z")

</div>

Seems like you got some malformed rows as explained here: [TheNoob3131/mosquito-data · Dataset is not loading](https://huggingface.co/datasets/TheNoob3131/mosquito-data/discussions/1#62d7adbd63583ad7bf1d00c8)
