Skip to content

Commit aa7831a

Browse files
committed
update test
1 parent 98c607a commit aa7831a

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

tests/CMakeLists.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,13 @@ private_data(
325325
LOCATION yolo_v8_instance_segmentation_large_coco_640x352_kitchen_segmentation_gt
326326
)
327327

328+
private_data(
329+
URL "luxonis-depthai-data-local/misc/parser_testing/ground_truth_files/detection_parser/yolov8-instance-segmentation-large_coco-640x352_701031f-segmentation_mask_v2.png"
330+
SHA1 "cf947acf1c210efba34c363fe6d8fd8d02293601"
331+
FILE "yolov8-instance-segmentation-large_coco-640x352_701031f-segmentation_mask_v2.png"
332+
LOCATION yolo_v8_instance_segmentation_large_coco_640x352_kitchen_segmentation_gt_v2
333+
)
334+
328335
### Helper script to wrap the tests with a timeout ############################
329336

330337
add_executable(test_wrapper src/helpers/test_wrapper.cpp)
@@ -537,7 +544,7 @@ FIRE_DETECTION_512x288_GROUND_TRUTH="${fire_detection_512x288_gt}"
537544
PEOPLE_WALKING_VIDEO="${people_walking_video}"
538545
FIRE_VIDEO="${fire_video}"
539546
KITCHEN_IMAGE_PATH="${kitchen_image}"
540-
YOLO_V8_INSTANCE_SEGMENTATION_LARGE_COCO_640x352_KITCHEN_SEGMENTATION_GROUND_TRUTH="${yolo_v8_instance_segmentation_large_coco_640x352_kitchen_segmentation_gt}"
547+
YOLO_V8_INSTANCE_SEGMENTATION_LARGE_COCO_640x352_KITCHEN_SEGMENTATION_GROUND_TRUTH="${yolo_v8_instance_segmentation_large_coco_640x352_kitchen_segmentation_gt_v2}"
541548
)
542549
dai_set_test_labels(detection_parser_test ondevice rvc4 ci)
543550

tests/src/ondevice_tests/pipeline/node/detection_parser_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,6 @@ TEST_CASE("DetectionParser segmentation mask test") {
374374

375375
cv::Mat diff;
376376
cv::absdiff(segmentationMask, kitchenGtSegmentation, diff);
377-
REQUIRE(cv::countNonZero(diff) == 0);
377+
REQUIRE(cv::countNonZero(diff) <= 5000);
378378
}
379379
#endif

0 commit comments

Comments
 (0)