ipazc / mtcnn

MTCNN face detection implementation for TensorFlow, as a PIP package.
MIT License
2.19k stars 526 forks source link

AttributeError: module 'keras.utils.generic_utils' has no attribute 'to_snake_case' #114

Open manupollak opened 3 years ago

manupollak commented 3 years ago

Hello,

i installed mtcnn in a python 3.8.10 environment and already during the import i get this Error:

LOCAL.ALL_OBJECTS[generic_utils.to_snake_case(key)] = value AttributeError: module 'keras.utils.generic_utils' has no attribute 'to_snake_case'

does anyone have experience with mtcnn and python 3.8.10? Thank you

SOLUTION: it is important to use keras 2.4.3 !! with keras 2.5 mtcnn will not work