Skip to content

Commit

Permalink
Merge pull request #3834 from asmorkalov:as/force_dnn_supperres_classic
Browse files Browse the repository at this point in the history
Force to use dnn_supperres module to the use classic engine
  • Loading branch information
asmorkalov authored Nov 28, 2024
2 parents fb2f42b + a08462c commit f7d6288
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/dnn_superres/src/dnn_superres.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit f7d6288

Please sign in to comment.