提交 e93d976d 编写于 作者: M Maksim Shabunin

gapi: fix InferWithReshape test crash when data is not found

上级 64aad34c
...@@ -304,7 +304,7 @@ struct InferWithReshape: public ::testing::Test { ...@@ -304,7 +304,7 @@ struct InferWithReshape: public ::testing::Test {
InferenceEngine::CNNNetwork net; InferenceEngine::CNNNetwork net;
InferenceEngine::Core plugin; InferenceEngine::Core plugin;
InferWithReshape() { void SetUp() {
// 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));
m_in_mat = cv::Mat(cv::Size(320, 240), CV_8UC3); m_in_mat = cv::Mat(cv::Size(320, 240), CV_8UC3);
cv::randu(m_in_mat, 0, 255); cv::randu(m_in_mat, 0, 255);
...@@ -386,6 +386,7 @@ struct InferWithReshapeNV12: public InferWithReshape { ...@@ -386,6 +386,7 @@ struct InferWithReshapeNV12: public InferWithReshape {
cv::Mat m_in_uv; cv::Mat m_in_uv;
cv::Mat m_in_y; cv::Mat m_in_y;
void SetUp() { void SetUp() {
InferWithReshape::SetUp();
cv::Size sz{320, 240}; cv::Size sz{320, 240};
m_in_y = cv::Mat{sz, CV_8UC1}; m_in_y = cv::Mat{sz, CV_8UC1};
cv::randu(m_in_y, 0, 255); cv::randu(m_in_y, 0, 255);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册