Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add YOLOv10 TFLite CI test #25

Merged
merged 2 commits into from
Sep 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions tests/test_yolo.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,23 @@ def test_yolov10_export_onnx_matrix(self, request, task, dynamic, int8, half, ba
)
YOLO(file)([SOURCE] * batch, imgsz=64 if dynamic else 32) # exported model inference

@pytest.mark.parametrize(
"task, dynamic, int8, half, batch",
product(["yolov10n"], [False], [False], [False], [1, 2]),
)
def test_yolov10_export_onnx_matrix(self, request, task, dynamic, int8, half, batch):
"""Exports YOLOv10 models to TFLite and tests inference with varying configurations."""
file = YOLO(task).export(
format="tflite",
imgsz=32,
dynamic=dynamic,
int8=int8,
half=half,
batch=batch,
simplify=True,
)
YOLO(file)([SOURCE] * batch, imgsz=64 if dynamic else 32) # exported model inference


if __name__ == "__main__":
pytest.main(
Expand Down