Skip to content

Commit

Permalink
Force to use dnn_supperres module to the use classic engine due to th…
Browse files Browse the repository at this point in the history
…e new engine bug.
  • Loading branch information
asmorkalov committed Nov 28, 2024
1 parent 2d69dd1 commit a08462c
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 a08462c

Please sign in to comment.