mirror of
https://github.com/opencv/opencv.git
synced 2025-06-13 04:52:53 +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());
|
std::ifstream cfgStream(cfgFile.c_str());
|
||||||
if (!cfgStream.is_open())
|
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())
|
if (darknetModel != String())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user