Skip to content

Commit f7d6288

Browse files
authored
Merge pull request #3834 from asmorkalov:as/force_dnn_supperres_classic
Force to use dnn_supperres module to the use classic engine
2 parents fb2f42b + a08462c commit f7d6288

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/dnn_superres/src/dnn_superres.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ void DnnSuperResImpl::readModel(const String& path)
6363
{
6464
if ( path.size() )
6565
{
66-
this->net = dnn::readNetFromTensorflow(path);
66+
this->net = dnn::readNetFromTensorflow(path, std::string(), dnn::ENGINE_CLASSIC);
6767
CV_LOG_INFO(NULL, "Successfully loaded model: " << path);
6868
}
6969
else
@@ -76,7 +76,7 @@ void DnnSuperResImpl::readModel(const String& weights, const String& definition)
7676
{
7777
if ( weights.size() && definition.size() )
7878
{
79-
this->net = dnn::readNetFromTensorflow(weights, definition);
79+
this->net = dnn::readNetFromTensorflow(weights, definition, dnn::ENGINE_CLASSIC);
8080
CV_LOG_INFO(NULL, "Successfully loaded model: " << weights << " " << definition);
8181
}
8282
else

0 commit comments

Comments
 (0)