export_tflite
Export a checkpoint to TFLite, optionally with INT8 enabled.
Inputs
checkpointoutput_pathimgszhalfint8device
Outputs
- TFLite artifact path and export duration
Examples
{"checkpoint":"run_demo"}
{"checkpoint":"~/models/retail.pt","int8":true}
{"checkpoint":"~/models/factory.pt","output_path":"~/exports/factory.tflite"}
Common Errors
- missing checkpoint
- upstream export failure from Ultralytics
Related Tools
export_onnx, quantize_int8