Python + OpenCV + TensorFlow视频面部标记点显示_Sinfinder的博客-CSDN博客
上述代码在python 3.7环境下正常运行(虽然有WARNING)
但当在python 3.9下运行报错如下:
WARNING:tensorflow:SavedModel saved prior to TF 2.5 detected when loading Keras model. Please ensure that you are saving the model with model.save() or tf.keras.models.save_model(), *NOT* tf.saved_model.save(). To confirm, there should be a file named "keras_metadata.pb" in the SavedModel directory.
Traceback (most recent call last):
File "/Users/sunchenglong/PycharmProjects/FRCTRe/test.py", line 178, in <module>
landmark_model = get_landmark_model()
File "/Users/sunchenglong/PycharmProjects/FRCTRe/test.py", line 69, in get_landmark_model
model = keras.models.loa