I trained a custom tflite model and tried to load it using the following script:
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) + ')')
This raise exception every time. However, when I replace the android.tflite file to the built in trained.tflite there is no error. I’m wondering why this is happening.