我用google collab训练了一个tflite模型,但当我试着在OpenMV IDE里导入这个模型时每次都会报错。当我把这个android.tflite换成系统自带的trained.tflite的时候就不会报错。我想知道为什么会导致这个情况。以下是我导入模型时使用的代码。
try:
net = tf.load("android.tflite", load_to_fb=uos.stat('android.tflite')[6] > (gc.mem_free() - (64*1024)))
except Exception as e:
raise Exception('Failed to load "trained.tflite", did you copy the .tflite and labels.txt file onto the mass-storage device? (' + str(e) + ')')