gender_training in expected input_1 to have shape (64, 64, 1) but got array with shape (64, 64, 3)
Kingwon2 opened this issue · 0 comments
i saw issues #85
but i don't resolve that
i just modified gender_model_path = '../trained_models/gender_models/gender_mini_XCEPTION.15-0.95.hdf5'
gender_mini_XCEPTION.15-0.95.hdf5 is trained model from train_emotion_classifier.py (data set : imdb)
File "C:\Users\박태원\AppData\Local\Programs\Python\Python36\lib\site-packages\keras\engine\training.py", line 1817, in predict check_batch_axis=False) File "C:\Users\박태원\AppData\Local\Programs\Python\Python36\lib\site-packages\keras\engine\training.py", line 123, in _standardize_input_data str(data_shape)) ValueError: Error when checking : expected input_1 to have shape (64, 64, 1) but got array with shape (64, 64, 3)
then, for Solving error, modified input_shape = (64, 64, 3) in train_emotion_classifier.py
and training then i tried but thisiappears
ValueError: Error when checking : expected input_1 to have shape (64, 64, 3) but got array with shape (64, 64, 1)
please help me ㅠㅠ