yu4u / age-gender-estimation

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

Can not Train the model #26

Closed eviling closed 6 years ago

eviling commented 6 years ago

Hi,

I unzipped the imdb_0.tar in the data folder I created. After I run python create_db.py --output data/imdb_db.mat --db imdb --img_size 64 and get the following error:

Traceback (most recent call last): File "create_db.py", line 66, in main() File "create_db.py", line 36, in main full_path, dob, gender, photo_taken, face_score, second_face_score, age = get_meta(mat_path, db) File "C:\Users\xxx\Desktop\Eye_Tracking\age-gender-estimation-master\utils.py", line 17, in get_meta meta = loadmat(mat_path) File "C:\Users\xxxl\AppData\Local\Continuum\anaconda3\lib\site-packages\scipy\io\matlab\mio.py", line 141, in loadmat MR, file_opened = mat_reader_factory(file_name, appendmat, **kwargs) File "C:\Users\xxx\AppData\Local\Continuum\anaconda3\lib\site-packages\scipy\io\matlab\mio.py", line 64, in mat_reader_factory byte_stream, file_opened = _open_file(file_name, appendmat) TypeError: 'NoneType' object is not iterable

Can you help me? I think is a dataset problem

yu4u commented 6 years ago

Please follow the instructions in README.md:

Download the dataset The dataset is downloaded and extracted to the data directory. ./download.sh