AssertionError in 'the300w_lp' tensorflow dataset


tensorflow dataset



I am having problem loading the ‘the300w_lp’ dataset. i have tried several ways, every time i am getting the same error, “AssertionError” after it gets downloaded and also gets extracted. i also tried with other datasets like ‘mnist’, which works fine. only getting this error with this dataset ‘the300w_lp’. Is there anyway to solve it.

Please try with nightly versions of Tensorflow and tfds as shown below

!pip install tfds-nightly
!pip install tf-nightly

import tensorflow as tf
import tensorflow_datasets as tfds
ds = tfds.load('the300w_lp', split='train')

ds =ds.take(1)

for example in ds:
    image = example["image"]

Please find the gist for reference. Thank you.

1 Like

Thank you very much for response. I did tried with tf-nightly and tfds-nightly installed. It pretty much gave me the same error in jupyter notebook. However i noticed that it is working fine when done in google colab, but doesn’t work the same for jupyter notebook.

I don’t know if it has to do with conda environment setup or with path location where tensorflow_datasets gets downloaded and extracted.

Thanks again for the reply