mirror of
https://github.com/opencv/opencv.git
synced 2025-06-08 01:53:19 +08:00
Mark OpenVINO models for G-API tests optional
This commit is contained in:
parent
27d718b223
commit
ad7ecf1dba
@ -38,8 +38,8 @@ try:
|
|||||||
return
|
return
|
||||||
|
|
||||||
root_path = '/omz_intel_models/intel/age-gender-recognition-retail-0013/FP32/age-gender-recognition-retail-0013'
|
root_path = '/omz_intel_models/intel/age-gender-recognition-retail-0013/FP32/age-gender-recognition-retail-0013'
|
||||||
model_path = self.find_file(root_path + '.xml', [os.environ.get('OPENCV_DNN_TEST_DATA_PATH')])
|
model_path = self.find_file(root_path + '.xml', [os.environ.get('OPENCV_DNN_TEST_DATA_PATH')], required=False)
|
||||||
weights_path = self.find_file(root_path + '.bin', [os.environ.get('OPENCV_DNN_TEST_DATA_PATH')])
|
weights_path = self.find_file(root_path + '.bin', [os.environ.get('OPENCV_DNN_TEST_DATA_PATH')], required=False)
|
||||||
device_id = 'CPU'
|
device_id = 'CPU'
|
||||||
|
|
||||||
img_path = self.find_file('cv/face/david2.jpg', [os.environ.get('OPENCV_TEST_DATA_PATH')])
|
img_path = self.find_file('cv/face/david2.jpg', [os.environ.get('OPENCV_TEST_DATA_PATH')])
|
||||||
@ -73,8 +73,8 @@ try:
|
|||||||
return
|
return
|
||||||
|
|
||||||
root_path = '/omz_intel_models/intel/age-gender-recognition-retail-0013/FP32/age-gender-recognition-retail-0013'
|
root_path = '/omz_intel_models/intel/age-gender-recognition-retail-0013/FP32/age-gender-recognition-retail-0013'
|
||||||
model_path = self.find_file(root_path + '.xml', [os.environ.get('OPENCV_DNN_TEST_DATA_PATH')])
|
model_path = self.find_file(root_path + '.xml', [os.environ.get('OPENCV_DNN_TEST_DATA_PATH')], required=False)
|
||||||
weights_path = self.find_file(root_path + '.bin', [os.environ.get('OPENCV_DNN_TEST_DATA_PATH')])
|
weights_path = self.find_file(root_path + '.bin', [os.environ.get('OPENCV_DNN_TEST_DATA_PATH')], required=False)
|
||||||
device_id = 'CPU'
|
device_id = 'CPU'
|
||||||
|
|
||||||
img_path = self.find_file('cv/face/david2.jpg', [os.environ.get('OPENCV_TEST_DATA_PATH')])
|
img_path = self.find_file('cv/face/david2.jpg', [os.environ.get('OPENCV_TEST_DATA_PATH')])
|
||||||
@ -112,8 +112,8 @@ try:
|
|||||||
return
|
return
|
||||||
|
|
||||||
root_path = '/omz_intel_models/intel/age-gender-recognition-retail-0013/FP32/age-gender-recognition-retail-0013'
|
root_path = '/omz_intel_models/intel/age-gender-recognition-retail-0013/FP32/age-gender-recognition-retail-0013'
|
||||||
model_path = self.find_file(root_path + '.xml', [os.environ.get('OPENCV_DNN_TEST_DATA_PATH')])
|
model_path = self.find_file(root_path + '.xml', [os.environ.get('OPENCV_DNN_TEST_DATA_PATH')], required=False)
|
||||||
weights_path = self.find_file(root_path + '.bin', [os.environ.get('OPENCV_DNN_TEST_DATA_PATH')])
|
weights_path = self.find_file(root_path + '.bin', [os.environ.get('OPENCV_DNN_TEST_DATA_PATH')], required=False)
|
||||||
device_id = 'CPU'
|
device_id = 'CPU'
|
||||||
|
|
||||||
rois = [(10, 15, 62, 62), (23, 50, 62, 62), (14, 100, 62, 62), (80, 50, 62, 62)]
|
rois = [(10, 15, 62, 62), (23, 50, 62, 62), (14, 100, 62, 62), (80, 50, 62, 62)]
|
||||||
@ -161,8 +161,8 @@ try:
|
|||||||
return
|
return
|
||||||
|
|
||||||
root_path = '/omz_intel_models/intel/age-gender-recognition-retail-0013/FP32/age-gender-recognition-retail-0013'
|
root_path = '/omz_intel_models/intel/age-gender-recognition-retail-0013/FP32/age-gender-recognition-retail-0013'
|
||||||
model_path = self.find_file(root_path + '.xml', [os.environ.get('OPENCV_DNN_TEST_DATA_PATH')])
|
model_path = self.find_file(root_path + '.xml', [os.environ.get('OPENCV_DNN_TEST_DATA_PATH')], required=False)
|
||||||
weights_path = self.find_file(root_path + '.bin', [os.environ.get('OPENCV_DNN_TEST_DATA_PATH')])
|
weights_path = self.find_file(root_path + '.bin', [os.environ.get('OPENCV_DNN_TEST_DATA_PATH')], required=False)
|
||||||
device_id = 'CPU'
|
device_id = 'CPU'
|
||||||
|
|
||||||
rois = [(10, 15, 62, 62), (23, 50, 62, 62), (14, 100, 62, 62), (80, 50, 62, 62)]
|
rois = [(10, 15, 62, 62), (23, 50, 62, 62), (14, 100, 62, 62), (80, 50, 62, 62)]
|
||||||
@ -211,8 +211,8 @@ try:
|
|||||||
return
|
return
|
||||||
|
|
||||||
root_path = '/omz_intel_models/intel/person-detection-retail-0013/FP32/person-detection-retail-0013'
|
root_path = '/omz_intel_models/intel/person-detection-retail-0013/FP32/person-detection-retail-0013'
|
||||||
model_path = self.find_file(root_path + '.xml', [os.environ.get('OPENCV_DNN_TEST_DATA_PATH')])
|
model_path = self.find_file(root_path + '.xml', [os.environ.get('OPENCV_DNN_TEST_DATA_PATH')], required=False)
|
||||||
weights_path = self.find_file(root_path + '.bin', [os.environ.get('OPENCV_DNN_TEST_DATA_PATH')])
|
weights_path = self.find_file(root_path + '.bin', [os.environ.get('OPENCV_DNN_TEST_DATA_PATH')], required=False)
|
||||||
img_path = self.find_file('gpu/lbpcascade/er.png', [os.environ.get('OPENCV_TEST_DATA_PATH')])
|
img_path = self.find_file('gpu/lbpcascade/er.png', [os.environ.get('OPENCV_TEST_DATA_PATH')])
|
||||||
device_id = 'CPU'
|
device_id = 'CPU'
|
||||||
img = cv.resize(cv.imread(img_path), (544, 320))
|
img = cv.resize(cv.imread(img_path), (544, 320))
|
||||||
@ -270,8 +270,8 @@ try:
|
|||||||
return
|
return
|
||||||
|
|
||||||
root_path = '/omz_intel_models/intel/person-detection-retail-0013/FP32/person-detection-retail-0013'
|
root_path = '/omz_intel_models/intel/person-detection-retail-0013/FP32/person-detection-retail-0013'
|
||||||
model_path = self.find_file(root_path + '.xml', [os.environ.get('OPENCV_DNN_TEST_DATA_PATH')])
|
model_path = self.find_file(root_path + '.xml', [os.environ.get('OPENCV_DNN_TEST_DATA_PATH')], required=False)
|
||||||
weights_path = self.find_file(root_path + '.bin', [os.environ.get('OPENCV_DNN_TEST_DATA_PATH')])
|
weights_path = self.find_file(root_path + '.bin', [os.environ.get('OPENCV_DNN_TEST_DATA_PATH')], required=False)
|
||||||
img_path = self.find_file('gpu/lbpcascade/er.png', [os.environ.get('OPENCV_TEST_DATA_PATH')])
|
img_path = self.find_file('gpu/lbpcascade/er.png', [os.environ.get('OPENCV_TEST_DATA_PATH')])
|
||||||
device_id = 'CPU'
|
device_id = 'CPU'
|
||||||
img = cv.resize(cv.imread(img_path), (544, 320))
|
img = cv.resize(cv.imread(img_path), (544, 320))
|
||||||
|
@ -86,8 +86,8 @@ try:
|
|||||||
skip_if_openvino_not_available()
|
skip_if_openvino_not_available()
|
||||||
|
|
||||||
root_path = '/omz_intel_models/intel/age-gender-recognition-retail-0013/FP32/age-gender-recognition-retail-0013'
|
root_path = '/omz_intel_models/intel/age-gender-recognition-retail-0013/FP32/age-gender-recognition-retail-0013'
|
||||||
model_path = self.find_file(root_path + '.xml', [os.environ.get('OPENCV_DNN_TEST_DATA_PATH')])
|
model_path = self.find_file(root_path + '.xml', [os.environ.get('OPENCV_DNN_TEST_DATA_PATH')], required=False)
|
||||||
bin_path = self.find_file(root_path + '.bin', [os.environ.get('OPENCV_DNN_TEST_DATA_PATH')])
|
bin_path = self.find_file(root_path + '.bin', [os.environ.get('OPENCV_DNN_TEST_DATA_PATH')], required=False)
|
||||||
device_id = 'CPU'
|
device_id = 'CPU'
|
||||||
|
|
||||||
img_path = self.find_file('cv/face/david2.jpg', [os.environ.get('OPENCV_TEST_DATA_PATH')])
|
img_path = self.find_file('cv/face/david2.jpg', [os.environ.get('OPENCV_TEST_DATA_PATH')])
|
||||||
@ -119,8 +119,8 @@ try:
|
|||||||
skip_if_openvino_not_available()
|
skip_if_openvino_not_available()
|
||||||
|
|
||||||
root_path = '/omz_intel_models/intel/age-gender-recognition-retail-0013/FP32/age-gender-recognition-retail-0013'
|
root_path = '/omz_intel_models/intel/age-gender-recognition-retail-0013/FP32/age-gender-recognition-retail-0013'
|
||||||
model_path = self.find_file(root_path + '.xml', [os.environ.get('OPENCV_DNN_TEST_DATA_PATH')])
|
model_path = self.find_file(root_path + '.xml', [os.environ.get('OPENCV_DNN_TEST_DATA_PATH')], required=False)
|
||||||
bin_path = self.find_file(root_path + '.bin', [os.environ.get('OPENCV_DNN_TEST_DATA_PATH')])
|
bin_path = self.find_file(root_path + '.bin', [os.environ.get('OPENCV_DNN_TEST_DATA_PATH')], required=False)
|
||||||
device_id = 'CPU'
|
device_id = 'CPU'
|
||||||
|
|
||||||
img_path = self.find_file('cv/face/david2.jpg', [os.environ.get('OPENCV_TEST_DATA_PATH')])
|
img_path = self.find_file('cv/face/david2.jpg', [os.environ.get('OPENCV_TEST_DATA_PATH')])
|
||||||
@ -148,8 +148,8 @@ try:
|
|||||||
skip_if_openvino_not_available()
|
skip_if_openvino_not_available()
|
||||||
|
|
||||||
root_path = '/omz_intel_models/intel/age-gender-recognition-retail-0013/FP32/age-gender-recognition-retail-0013'
|
root_path = '/omz_intel_models/intel/age-gender-recognition-retail-0013/FP32/age-gender-recognition-retail-0013'
|
||||||
model_path = self.find_file(root_path + '.xml', [os.environ.get('OPENCV_DNN_TEST_DATA_PATH')])
|
model_path = self.find_file(root_path + '.xml', [os.environ.get('OPENCV_DNN_TEST_DATA_PATH')], required=False)
|
||||||
bin_path = self.find_file(root_path + '.bin', [os.environ.get('OPENCV_DNN_TEST_DATA_PATH')])
|
bin_path = self.find_file(root_path + '.bin', [os.environ.get('OPENCV_DNN_TEST_DATA_PATH')], required=False)
|
||||||
device_id = 'CPU'
|
device_id = 'CPU'
|
||||||
|
|
||||||
img_path1 = self.find_file('cv/face/david1.jpg', [os.environ.get('OPENCV_TEST_DATA_PATH')])
|
img_path1 = self.find_file('cv/face/david1.jpg', [os.environ.get('OPENCV_TEST_DATA_PATH')])
|
||||||
@ -190,8 +190,8 @@ try:
|
|||||||
skip_if_openvino_not_available()
|
skip_if_openvino_not_available()
|
||||||
|
|
||||||
root_path = '/omz_intel_models/intel/age-gender-recognition-retail-0013/FP32/age-gender-recognition-retail-0013'
|
root_path = '/omz_intel_models/intel/age-gender-recognition-retail-0013/FP32/age-gender-recognition-retail-0013'
|
||||||
model_path = self.find_file(root_path + '.xml', [os.environ.get('OPENCV_DNN_TEST_DATA_PATH')])
|
model_path = self.find_file(root_path + '.xml', [os.environ.get('OPENCV_DNN_TEST_DATA_PATH')], required=False)
|
||||||
bin_path = self.find_file(root_path + '.bin', [os.environ.get('OPENCV_DNN_TEST_DATA_PATH')])
|
bin_path = self.find_file(root_path + '.bin', [os.environ.get('OPENCV_DNN_TEST_DATA_PATH')], required=False)
|
||||||
device_id = 'CPU'
|
device_id = 'CPU'
|
||||||
|
|
||||||
img_path = self.find_file('cv/face/david2.jpg', [os.environ.get('OPENCV_TEST_DATA_PATH')])
|
img_path = self.find_file('cv/face/david2.jpg', [os.environ.get('OPENCV_TEST_DATA_PATH')])
|
||||||
|
@ -187,8 +187,8 @@ std::string compileAgeGenderBlob(const std::string& device) {
|
|||||||
cv::gapi::ie::detail::ParamDesc params;
|
cv::gapi::ie::detail::ParamDesc params;
|
||||||
const std::string model_name = "age-gender-recognition-retail-0013";
|
const std::string model_name = "age-gender-recognition-retail-0013";
|
||||||
const std::string output = model_name + ".blob";
|
const std::string output = model_name + ".blob";
|
||||||
params.model_path = findDataFile(SUBDIR + model_name + ".xml");
|
params.model_path = findDataFile(SUBDIR + model_name + ".xml", false);
|
||||||
params.weights_path = findDataFile(SUBDIR + model_name + ".bin");
|
params.weights_path = findDataFile(SUBDIR + model_name + ".bin", false);
|
||||||
params.device_id = device;
|
params.device_id = device;
|
||||||
compileBlob(params, output, IE::Precision::U8);
|
compileBlob(params, output, IE::Precision::U8);
|
||||||
return output;
|
return output;
|
||||||
@ -205,8 +205,8 @@ TEST(TestAgeGenderIE, InferBasicTensor)
|
|||||||
initDLDTDataPath();
|
initDLDTDataPath();
|
||||||
|
|
||||||
cv::gapi::ie::detail::ParamDesc params;
|
cv::gapi::ie::detail::ParamDesc params;
|
||||||
params.model_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.xml");
|
params.model_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.xml", false);
|
||||||
params.weights_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.bin");
|
params.weights_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.bin", false);
|
||||||
params.device_id = "CPU";
|
params.device_id = "CPU";
|
||||||
|
|
||||||
// Load IE network, initialize input data using that.
|
// Load IE network, initialize input data using that.
|
||||||
@ -256,8 +256,8 @@ TEST(TestAgeGenderIE, InferBasicImage)
|
|||||||
initDLDTDataPath();
|
initDLDTDataPath();
|
||||||
|
|
||||||
cv::gapi::ie::detail::ParamDesc params;
|
cv::gapi::ie::detail::ParamDesc params;
|
||||||
params.model_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.xml");
|
params.model_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.xml", false);
|
||||||
params.weights_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.bin");
|
params.weights_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.bin", false);
|
||||||
params.device_id = "CPU";
|
params.device_id = "CPU";
|
||||||
|
|
||||||
// FIXME: Ideally it should be an image from disk
|
// FIXME: Ideally it should be an image from disk
|
||||||
@ -334,8 +334,8 @@ struct InferWithReshape: public ::testing::Test {
|
|||||||
reshape_dims = {1, 3, 70, 70};
|
reshape_dims = {1, 3, 70, 70};
|
||||||
|
|
||||||
initDLDTDataPath();
|
initDLDTDataPath();
|
||||||
params.model_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.xml");
|
params.model_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.xml", false);
|
||||||
params.weights_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.bin");
|
params.weights_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.bin", false);
|
||||||
|
|
||||||
params.device_id = "CPU";
|
params.device_id = "CPU";
|
||||||
|
|
||||||
@ -432,8 +432,8 @@ struct ROIList: public ::testing::Test {
|
|||||||
|
|
||||||
void SetUp() {
|
void SetUp() {
|
||||||
initDLDTDataPath();
|
initDLDTDataPath();
|
||||||
params.model_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.xml");
|
params.model_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.xml", false);
|
||||||
params.weights_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.bin");
|
params.weights_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.bin", false);
|
||||||
params.device_id = "CPU";
|
params.device_id = "CPU";
|
||||||
|
|
||||||
// FIXME: it must be cv::imread(findDataFile("../dnn/grace_hopper_227.png", false));
|
// FIXME: it must be cv::imread(findDataFile("../dnn/grace_hopper_227.png", false));
|
||||||
@ -505,8 +505,8 @@ struct ROIListNV12: public ::testing::Test {
|
|||||||
|
|
||||||
void SetUp() {
|
void SetUp() {
|
||||||
initDLDTDataPath();
|
initDLDTDataPath();
|
||||||
params.model_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.xml");
|
params.model_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.xml", false);
|
||||||
params.weights_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.bin");
|
params.weights_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.bin", false);
|
||||||
params.device_id = "CPU";
|
params.device_id = "CPU";
|
||||||
|
|
||||||
cv::Size sz{320, 240};
|
cv::Size sz{320, 240};
|
||||||
@ -585,8 +585,8 @@ struct SingleROI: public ::testing::Test {
|
|||||||
|
|
||||||
void SetUp() {
|
void SetUp() {
|
||||||
initDLDTDataPath();
|
initDLDTDataPath();
|
||||||
params.model_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.xml");
|
params.model_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.xml", false);
|
||||||
params.weights_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.bin");
|
params.weights_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.bin", false);
|
||||||
params.device_id = "CPU";
|
params.device_id = "CPU";
|
||||||
|
|
||||||
// FIXME: it must be cv::imread(findDataFile("../dnn/grace_hopper_227.png", false));
|
// FIXME: it must be cv::imread(findDataFile("../dnn/grace_hopper_227.png", false));
|
||||||
@ -644,8 +644,8 @@ struct SingleROINV12: public ::testing::Test {
|
|||||||
|
|
||||||
void SetUp() {
|
void SetUp() {
|
||||||
initDLDTDataPath();
|
initDLDTDataPath();
|
||||||
params.model_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.xml");
|
params.model_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.xml", false);
|
||||||
params.weights_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.bin");
|
params.weights_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.bin", false);
|
||||||
params.device_id = "CPU";
|
params.device_id = "CPU";
|
||||||
|
|
||||||
cv::Size sz{320, 240};
|
cv::Size sz{320, 240};
|
||||||
@ -809,8 +809,8 @@ TEST(TestAgeGenderIE, GenericInfer)
|
|||||||
initDLDTDataPath();
|
initDLDTDataPath();
|
||||||
|
|
||||||
cv::gapi::ie::detail::ParamDesc params;
|
cv::gapi::ie::detail::ParamDesc params;
|
||||||
params.model_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.xml");
|
params.model_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.xml", false);
|
||||||
params.weights_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.bin");
|
params.weights_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.bin", false);
|
||||||
params.device_id = "CPU";
|
params.device_id = "CPU";
|
||||||
|
|
||||||
cv::Mat in_mat(cv::Size(320, 240), CV_8UC3);
|
cv::Mat in_mat(cv::Size(320, 240), CV_8UC3);
|
||||||
@ -859,8 +859,8 @@ TEST(TestAgeGenderIE, InvalidConfigGeneric)
|
|||||||
{
|
{
|
||||||
initDLDTDataPath();
|
initDLDTDataPath();
|
||||||
|
|
||||||
std::string model_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.xml");
|
std::string model_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.xml", false);
|
||||||
std::string weights_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.bin");
|
std::string weights_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.bin", false);
|
||||||
std::string device_id = "CPU";
|
std::string device_id = "CPU";
|
||||||
|
|
||||||
// Configure & run G-API
|
// Configure & run G-API
|
||||||
@ -885,8 +885,8 @@ TEST(TestAgeGenderIE, CPUConfigGeneric)
|
|||||||
{
|
{
|
||||||
initDLDTDataPath();
|
initDLDTDataPath();
|
||||||
|
|
||||||
std::string model_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.xml");
|
std::string model_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.xml", false);
|
||||||
std::string weights_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.bin");
|
std::string weights_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.bin", false);
|
||||||
std::string device_id = "CPU";
|
std::string device_id = "CPU";
|
||||||
|
|
||||||
// Configure & run G-API
|
// Configure & run G-API
|
||||||
@ -912,8 +912,8 @@ TEST(TestAgeGenderIE, InvalidConfig)
|
|||||||
{
|
{
|
||||||
initDLDTDataPath();
|
initDLDTDataPath();
|
||||||
|
|
||||||
std::string model_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.xml");
|
std::string model_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.xml", false);
|
||||||
std::string weights_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.bin");
|
std::string weights_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.bin", false);
|
||||||
std::string device_id = "CPU";
|
std::string device_id = "CPU";
|
||||||
|
|
||||||
using AGInfo = std::tuple<cv::GMat, cv::GMat>;
|
using AGInfo = std::tuple<cv::GMat, cv::GMat>;
|
||||||
@ -937,8 +937,8 @@ TEST(TestAgeGenderIE, CPUConfig)
|
|||||||
{
|
{
|
||||||
initDLDTDataPath();
|
initDLDTDataPath();
|
||||||
|
|
||||||
std::string model_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.xml");
|
std::string model_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.xml", false);
|
||||||
std::string weights_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.bin");
|
std::string weights_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.bin", false);
|
||||||
std::string device_id = "CPU";
|
std::string device_id = "CPU";
|
||||||
|
|
||||||
using AGInfo = std::tuple<cv::GMat, cv::GMat>;
|
using AGInfo = std::tuple<cv::GMat, cv::GMat>;
|
||||||
@ -1017,8 +1017,8 @@ TEST(TestAgeGenderIE, MediaInputNV12)
|
|||||||
initDLDTDataPath();
|
initDLDTDataPath();
|
||||||
|
|
||||||
cv::gapi::ie::detail::ParamDesc params;
|
cv::gapi::ie::detail::ParamDesc params;
|
||||||
params.model_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.xml");
|
params.model_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.xml", false);
|
||||||
params.weights_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.bin");
|
params.weights_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.bin", false);
|
||||||
params.device_id = "CPU";
|
params.device_id = "CPU";
|
||||||
|
|
||||||
cv::Size sz{320, 240};
|
cv::Size sz{320, 240};
|
||||||
@ -1082,8 +1082,8 @@ TEST(TestAgeGenderIE, MediaInputBGR)
|
|||||||
initDLDTDataPath();
|
initDLDTDataPath();
|
||||||
|
|
||||||
cv::gapi::ie::detail::ParamDesc params;
|
cv::gapi::ie::detail::ParamDesc params;
|
||||||
params.model_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.xml");
|
params.model_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.xml", false);
|
||||||
params.weights_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.bin");
|
params.weights_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.bin", false);
|
||||||
params.device_id = "CPU";
|
params.device_id = "CPU";
|
||||||
|
|
||||||
cv::Size sz{320, 240};
|
cv::Size sz{320, 240};
|
||||||
@ -1134,8 +1134,8 @@ TEST(InferROI, MediaInputBGR)
|
|||||||
initDLDTDataPath();
|
initDLDTDataPath();
|
||||||
|
|
||||||
cv::gapi::ie::detail::ParamDesc params;
|
cv::gapi::ie::detail::ParamDesc params;
|
||||||
params.model_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.xml");
|
params.model_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.xml", false);
|
||||||
params.weights_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.bin");
|
params.weights_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.bin", false);
|
||||||
params.device_id = "CPU";
|
params.device_id = "CPU";
|
||||||
|
|
||||||
cv::Size sz{320, 240};
|
cv::Size sz{320, 240};
|
||||||
@ -1196,8 +1196,8 @@ TEST(InferROI, MediaInputNV12)
|
|||||||
initDLDTDataPath();
|
initDLDTDataPath();
|
||||||
|
|
||||||
cv::gapi::ie::detail::ParamDesc params;
|
cv::gapi::ie::detail::ParamDesc params;
|
||||||
params.model_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.xml");
|
params.model_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.xml", false);
|
||||||
params.weights_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.bin");
|
params.weights_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.bin", false);
|
||||||
params.device_id = "CPU";
|
params.device_id = "CPU";
|
||||||
|
|
||||||
cv::Size sz{320, 240};
|
cv::Size sz{320, 240};
|
||||||
@ -1587,8 +1587,8 @@ TEST(Infer, TestStreamingInfer)
|
|||||||
std::string filepath = findDataFile("cv/video/768x576.avi");
|
std::string filepath = findDataFile("cv/video/768x576.avi");
|
||||||
|
|
||||||
cv::gapi::ie::detail::ParamDesc params;
|
cv::gapi::ie::detail::ParamDesc params;
|
||||||
params.model_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.xml");
|
params.model_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.xml", false);
|
||||||
params.weights_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.bin");
|
params.weights_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.bin", false);
|
||||||
params.device_id = "CPU";
|
params.device_id = "CPU";
|
||||||
|
|
||||||
// Load IE network, initialize input data using that.
|
// Load IE network, initialize input data using that.
|
||||||
@ -1654,8 +1654,8 @@ TEST(InferROI, TestStreamingInfer)
|
|||||||
std::string filepath = findDataFile("cv/video/768x576.avi");
|
std::string filepath = findDataFile("cv/video/768x576.avi");
|
||||||
|
|
||||||
cv::gapi::ie::detail::ParamDesc params;
|
cv::gapi::ie::detail::ParamDesc params;
|
||||||
params.model_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.xml");
|
params.model_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.xml", false);
|
||||||
params.weights_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.bin");
|
params.weights_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.bin", false);
|
||||||
params.device_id = "CPU";
|
params.device_id = "CPU";
|
||||||
|
|
||||||
// Load IE network, initialize input data using that.
|
// Load IE network, initialize input data using that.
|
||||||
@ -1732,8 +1732,8 @@ TEST(InferList, TestStreamingInfer)
|
|||||||
std::string filepath = findDataFile("cv/video/768x576.avi");
|
std::string filepath = findDataFile("cv/video/768x576.avi");
|
||||||
|
|
||||||
cv::gapi::ie::detail::ParamDesc params;
|
cv::gapi::ie::detail::ParamDesc params;
|
||||||
params.model_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.xml");
|
params.model_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.xml", false);
|
||||||
params.weights_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.bin");
|
params.weights_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.bin", false);
|
||||||
params.device_id = "CPU";
|
params.device_id = "CPU";
|
||||||
|
|
||||||
// Load IE network, initialize input data using that.
|
// Load IE network, initialize input data using that.
|
||||||
@ -1821,8 +1821,8 @@ TEST(Infer2, TestStreamingInfer)
|
|||||||
std::string filepath = findDataFile("cv/video/768x576.avi");
|
std::string filepath = findDataFile("cv/video/768x576.avi");
|
||||||
|
|
||||||
cv::gapi::ie::detail::ParamDesc params;
|
cv::gapi::ie::detail::ParamDesc params;
|
||||||
params.model_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.xml");
|
params.model_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.xml", false);
|
||||||
params.weights_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.bin");
|
params.weights_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.bin", false);
|
||||||
params.device_id = "CPU";
|
params.device_id = "CPU";
|
||||||
|
|
||||||
// Load IE network, initialize input data using that.
|
// Load IE network, initialize input data using that.
|
||||||
@ -1911,8 +1911,8 @@ TEST(InferEmptyList, TestStreamingInfer)
|
|||||||
std::string filepath = findDataFile("cv/video/768x576.avi");
|
std::string filepath = findDataFile("cv/video/768x576.avi");
|
||||||
|
|
||||||
cv::gapi::ie::detail::ParamDesc params;
|
cv::gapi::ie::detail::ParamDesc params;
|
||||||
params.model_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.xml");
|
params.model_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.xml", false);
|
||||||
params.weights_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.bin");
|
params.weights_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.bin", false);
|
||||||
params.device_id = "CPU";
|
params.device_id = "CPU";
|
||||||
|
|
||||||
// Load IE network, initialize input data using that.
|
// Load IE network, initialize input data using that.
|
||||||
@ -1965,8 +1965,8 @@ TEST(Infer2EmptyList, TestStreamingInfer)
|
|||||||
std::string filepath = findDataFile("cv/video/768x576.avi");
|
std::string filepath = findDataFile("cv/video/768x576.avi");
|
||||||
|
|
||||||
cv::gapi::ie::detail::ParamDesc params;
|
cv::gapi::ie::detail::ParamDesc params;
|
||||||
params.model_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.xml");
|
params.model_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.xml", false);
|
||||||
params.weights_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.bin");
|
params.weights_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.bin", false);
|
||||||
params.device_id = "CPU";
|
params.device_id = "CPU";
|
||||||
|
|
||||||
// Load IE network, initialize input data using that.
|
// Load IE network, initialize input data using that.
|
||||||
@ -2294,8 +2294,8 @@ struct LimitedSourceInfer: public ::testing::Test {
|
|||||||
|
|
||||||
GStreamingCompiled compileStreaming(int nireq) {
|
GStreamingCompiled compileStreaming(int nireq) {
|
||||||
cv::gapi::ie::detail::ParamDesc params;
|
cv::gapi::ie::detail::ParamDesc params;
|
||||||
params.model_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.xml");
|
params.model_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.xml", false);
|
||||||
params.weights_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.bin");
|
params.weights_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.bin", false);
|
||||||
params.device_id = "CPU";
|
params.device_id = "CPU";
|
||||||
|
|
||||||
auto pp = cv::gapi::ie::Params<AgeGender> {
|
auto pp = cv::gapi::ie::Params<AgeGender> {
|
||||||
@ -2348,8 +2348,8 @@ TEST(TestAgeGenderIE, InferWithBatch)
|
|||||||
|
|
||||||
constexpr int batch_size = 4;
|
constexpr int batch_size = 4;
|
||||||
cv::gapi::ie::detail::ParamDesc params;
|
cv::gapi::ie::detail::ParamDesc params;
|
||||||
params.model_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.xml");
|
params.model_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.xml", false);
|
||||||
params.weights_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.bin");
|
params.weights_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.bin", false);
|
||||||
params.device_id = "CPU";
|
params.device_id = "CPU";
|
||||||
|
|
||||||
cv::Mat in_mat({batch_size, 3, 62, 62}, CV_8U);
|
cv::Mat in_mat({batch_size, 3, 62, 62}, CV_8U);
|
||||||
@ -3091,8 +3091,8 @@ struct AgeGenderInferTest: public ::testing::Test {
|
|||||||
|
|
||||||
void SetUp() {
|
void SetUp() {
|
||||||
initDLDTDataPath();
|
initDLDTDataPath();
|
||||||
m_params.model_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.xml");
|
m_params.model_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.xml", false);
|
||||||
m_params.weights_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.bin");
|
m_params.weights_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.bin", false);
|
||||||
m_params.device_id = "CPU";
|
m_params.device_id = "CPU";
|
||||||
|
|
||||||
m_plugin = cv::gimpl::ie::wrap::getPlugin(m_params);
|
m_plugin = cv::gimpl::ie::wrap::getPlugin(m_params);
|
||||||
@ -3191,8 +3191,8 @@ TEST(TestAgeGenderIE, InferTensorWithPreproc) {
|
|||||||
initDLDTDataPath();
|
initDLDTDataPath();
|
||||||
|
|
||||||
cv::gapi::ie::detail::ParamDesc params;
|
cv::gapi::ie::detail::ParamDesc params;
|
||||||
params.model_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.xml");
|
params.model_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.xml", false);
|
||||||
params.weights_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.bin");
|
params.weights_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.bin", false);
|
||||||
params.device_id = "CPU";
|
params.device_id = "CPU";
|
||||||
|
|
||||||
// Load IE network, initialize input data using that.
|
// Load IE network, initialize input data using that.
|
||||||
|
@ -255,8 +255,8 @@ private:
|
|||||||
struct BaseAgeGenderOV: public ::testing::Test {
|
struct BaseAgeGenderOV: public ::testing::Test {
|
||||||
BaseAgeGenderOV() {
|
BaseAgeGenderOV() {
|
||||||
initDLDTDataPath();
|
initDLDTDataPath();
|
||||||
xml_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.xml");
|
xml_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.xml", false);
|
||||||
bin_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.bin");
|
bin_path = findDataFile(SUBDIR + "age-gender-recognition-retail-0013.bin", false);
|
||||||
device = "CPU";
|
device = "CPU";
|
||||||
blob_path = "age-gender-recognition-retail-0013.blob";
|
blob_path = "age-gender-recognition-retail-0013.blob";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user