face_toolbox_keras icon indicating copy to clipboard operation
face_toolbox_keras copied to clipboard

Error in Colab Demo

Open julienguegan opened this issue 4 years ago • 1 comments

Currently, I can't make the demo works in colab ...

The line fd = face_detector.FaceAlignmentDetector(lmd_weights_path="./models/detector/FAN/2DFAN-4_keras.h5") return the error AttributeError: module 'tensorflow' has no attribute 'get_default_graph' ...

From several forum sources, it seems to be a tensorflow/keras version problem (some people advice to change from keras to from tensorflow.keras) but I can't really figure how and where to debug it as I don't really know how all the code works for now

Do you have any ideas on how to make it work ?

Thank you

julienguegan avatar Sep 09 '20 15:09 julienguegan

Downgrading tensorflow and keras might solve this problem.

I'm not sure whether downgrading will cause other problems since the environment in colab has changed a lot since last time I worked on this project

shaoanlu avatar Sep 18 '20 07:09 shaoanlu