mirror of
https://github.com/opencv/opencv.git
synced 2025-06-11 20:09:23 +08:00
Update darknet_importer.cpp
make it more obvious, that this is a '404', not a 'parsing' problem
This commit is contained in:
parent
93dc0679ec
commit
50d7c61c01
@ -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…
Reference in New Issue
Block a user