diff --git a/modules/dnn_superres/src/dnn_superres.cpp b/modules/dnn_superres/src/dnn_superres.cpp index 8dcc86ac81d..0e82c335570 100644 --- a/modules/dnn_superres/src/dnn_superres.cpp +++ b/modules/dnn_superres/src/dnn_superres.cpp @@ -63,7 +63,7 @@ void DnnSuperResImpl::readModel(const String& path) { if ( path.size() ) { - this->net = dnn::readNetFromTensorflow(path); + this->net = dnn::readNetFromTensorflow(path, std::string(), dnn::ENGINE_CLASSIC); CV_LOG_INFO(NULL, "Successfully loaded model: " << path); } else @@ -76,7 +76,7 @@ void DnnSuperResImpl::readModel(const String& weights, const String& definition) { if ( weights.size() && definition.size() ) { - this->net = dnn::readNetFromTensorflow(weights, definition); + this->net = dnn::readNetFromTensorflow(weights, definition, dnn::ENGINE_CLASSIC); CV_LOG_INFO(NULL, "Successfully loaded model: " << weights << " " << definition); } else