我一直在研究GradCam,我注意到大多数情况下都是在Keras/Tensorflow模型上使用的。但是,我有一个已编译为.tflite格式的tensorflow lite模型。我甚至不确定在编译后是否可以访问我的CNN层,因为我尝试使用keras库加载模型,但它只接受特定的文件类型,而不是确切的.tflite,因为它抛出了错误: from tensorflow.keras.modelsimport load_model
model = load_model("/conten
我尝试了许多方法,但我无法将保存的模型文件转换为tf lite模型,每次运行新代码时,我都会收到不同的错误。从形状错误到下面列出的错误。'NoneType' object has no attribute 'TFE_MonitoringDeleteBuckets' 我使用的是以下代码: import tensorflow as tf#Convert the model
converter = tf.lite.