Update darknet_importer.cpp

make it more obvious, that this is a '404', not a 'parsing' problem
pull/22024/head
berak 3 years ago committed by GitHub
parent 93dc0679ec
commit 50d7c61c01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      modules/dnn/src/darknet/darknet_importer.cpp

@ -207,7 +207,7 @@ Net readNetFromDarknet(const String &cfgFile, const String &darknetModel /*= Str
std::ifstream cfgStream(cfgFile.c_str());
if (!cfgStream.is_open())
{
CV_Error(cv::Error::StsParseError, "Failed to parse NetParameter file: " + std::string(cfgFile));
CV_Error(cv::Error::StsParseError, "Failed to open NetParameter file: " + std::string(cfgFile));
}
if (darknetModel != String())
{

Loading…
Cancel
Save