Files
wehub-resource-sync 925e56bb5f
Test CLI scripts / build (push) Waiting to run
Unit tests / build (t4_gpu) (push) Waiting to run
Unit tests / build (ubuntu-latest) (push) Waiting to run
Unit tests / build (windows-latest) (push) Waiting to run
chore: import upstream snapshot with attribution
2026-07-13 13:24:56 +08:00

9 lines
286 B
Python

def test_detection(detection_predictor, test_image):
detection_results = detection_predictor([test_image])
assert len(detection_results) == 1
assert detection_results[0].image_bbox == [0, 0, 1024, 1024]
bboxes = detection_results[0].bboxes
assert len(bboxes) == 4