Skip to content

Commit a08462c

Browse files
committed
Force to use dnn_supperres module to the use classic engine due to the new engine bug.
1 parent 2d69dd1 commit a08462c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/dnn_superres/src/dnn_superres.cpp

Lines changed: 2 additions & 2 deletions
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)