Merge pull request #25857 from asmorkalov:as/yolov9_harrowing_conversion

Fixed narrowing conversion warning with MSVC compiler.
pull/25858/head
Alexander Smorkalov 4 months ago committed by GitHub
commit 53f51275e4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      modules/dnn/test/test_onnx_importer.cpp

@ -2800,7 +2800,7 @@ TEST_P(Test_ONNX_nets, YOLOv9)
float iou_threshold = 0.50; float iou_threshold = 0.50;
std::vector<int> refClassIds{1, 16, 2}; // wrong class mapping for yolov9 std::vector<int> refClassIds{1, 16, 2}; // wrong class mapping for yolov9
std::vector<float> refScores{0.959274f, 0.901125, 0.559396f}; std::vector<float> refScores{0.959274f, 0.901125f, 0.559396f};
std::vector<Rect2d> refBoxes{ std::vector<Rect2d> refBoxes{
Rect2d(106.255, 107.927, 472.497, 350.309), Rect2d(106.255, 107.927, 472.497, 350.309),

Loading…
Cancel
Save