成功解決AttributeError: module tensorflow has no attribute lite
目錄
解決問題
self.interp_palm = tf.lite.Interpreter(palm_model)
AttributeError: module 'tensorflow' has no attribute 'lite'
解決思路
屬性錯誤:模塊“tensorflow”沒有屬性“lite”
解決方法
參考:TensorFlow函數教程:tf.lite.Interpreter
TensorFlow版本不一致導致錯誤,需要將TensorFlow版本升級到TensorFlow2.0