yu4u / age-gender-estimation

Keras implementation of a CNN network for age and gender estimation
MIT License
1.46k stars 502 forks source link

zlib.error: Error -3 while decompressing data: invalid code lengths set #107

Open venuraaa opened 4 years ago

venuraaa commented 4 years ago

i get this error: zlib.error: Error -3 while decompressing data: invalid code lengths set

when trying to create training data from IMDB-WIKI Dataset.

venuraaa commented 4 years ago

Could someone please help me. Im still getting that errror and I cannot understand why. I get it when I run the code: python3 create_db.py --output data/imdb_db.mat --db imdb --img_size 64

Is it something to do with a dependency not installed? Please help me!

yu4u commented 4 years ago

It might be occurred in https://github.com/yu4u/age-gender-estimation/blob/master/utils.py#L30

venuraaa commented 4 years ago

Is it because I have both datasets there? I have two folders imdb_crop and wiki_crop under the data folder. Is it due to this problem that it happens? Since it cannot identify which root path to take?

yu4u commented 4 years ago

Is it because I have both datasets there?

No. Please check whether only doing loadmat(mat_path) causes problem or not.