mirror of
https://github.com/opencv/opencv.git
synced 2026-07-21 19:33:03 +04:00
Renamed model to prevent name conflict.
This commit is contained in:
@@ -220,7 +220,7 @@ PERF_TEST_P_(DNNTestNetwork, YOLOv3)
|
||||
Mat sample = imread(findDataFile("dnn/dog416.png"));
|
||||
cv::resize(sample, sample, Size(416, 416));
|
||||
Mat inp = blobFromImage(sample, 1.0 / 255.0, Size(), Scalar(), true);
|
||||
processNet("dnn/yolov3.onnx", "", inp);
|
||||
processNet("dnn/yolov3-converted.onnx", "", inp);
|
||||
}
|
||||
|
||||
PERF_TEST_P_(DNNTestNetwork, YOLOv4)
|
||||
|
||||
@@ -341,7 +341,7 @@ TEST_P(Test_YOLO_nets, YOLOv3)
|
||||
scoreDiff = 0.04;
|
||||
iouDiff = 0.03;
|
||||
}
|
||||
std::string model_file = "yolov3.onnx";
|
||||
std::string model_file = "yolov3-converted.onnx";
|
||||
|
||||
{
|
||||
SCOPED_TRACE("batch size 1");
|
||||
|
||||
@@ -364,7 +364,7 @@ TEST_P(Test_Model, YOLOv3)
|
||||
cv::resize(img, img, inputSize);
|
||||
Mat blob = blobFromImage(img, 1.0 / 255.0, inputSize, Scalar(), true, false);
|
||||
|
||||
Net net = readNet(_tf("yolov3.onnx", false));
|
||||
Net net = readNet(_tf("yolov3-converted.onnx", false));
|
||||
net.setPreferableBackend(backend);
|
||||
net.setPreferableTarget(target);
|
||||
net.setInput(blob);
|
||||
|
||||
Reference in New Issue
Block a user