Vincent Hanewinkel 78ad1dd29e + add tflite export
+ add Quantisierung
2025-07-15 17:13:11 +02:00

16 lines
304 B
Python

from ultralytics import YOLO
import os
dir = os.path.dirname(os.path.realpath(__file__))
model = YOLO(dir + "/best.pt")
# Exportiere es ins TFLite-Format
model.export(
format="tflite",
dynamic=False,
inference_type="uint8",
quantize=True,
calibration_data="path/to/rep_dataset/"
)