Skip to content

Commit

Permalink
fix: comment latency test
Browse files Browse the repository at this point in the history
  • Loading branch information
mbsaloka committed Oct 20, 2024
1 parent a0c95f2 commit eab13b0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/ninshiki_cpp/detector/dnn_detector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,10 @@ void DnnDetector::detection(const cv::Mat & image, float conf_threshold, float n

total_latency += latency.count();

printf("Inference time: %.2f ms, %d\n", latency.count(), ++iterations);
printf("Average latency: %.2f ms\n", total_latency / iterations);
printf("--------------------------------\n");
// Print Inference Time
// printf("Inference time: %.2f ms, %d\n", latency.count(), ++iterations);
// printf("Average latency: %.2f ms\n", total_latency / iterations);
// printf("--------------------------------\n");
}

void DnnDetector::detect_darknet(const cv::Mat & image, float conf_threshold, float nms_threshold)
Expand Down

0 comments on commit eab13b0

Please sign in to comment.