Skip to content

Commit fa73743

Browse files
authored
Bugs fixing
1 parent cc448d1 commit fa73743

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Darknet.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,13 @@ static inline int split(const string& str, std::vector<string>& ret_, string sep
7070
static inline int split(const string& str, std::vector<int>& ret_, string sep = ",")
7171
{
7272
std::vector<string> tmp;
73-
split(str, tmp, sep);
73+
auto rc = split(str, tmp, sep);
7474

7575
for(int i = 0; i < tmp.size(); i++)
7676
{
7777
ret_.push_back(std::stoi(tmp[i]));
7878
}
79+
return rc;
7980
}
8081

8182
// returns the IoU of two bounding boxes
@@ -499,6 +500,7 @@ map<string, string>* Darknet::get_net_info()
499500
{
500501
return &blocks[0];
501502
}
503+
return nullptr;
502504
}
503505

504506
void Darknet::load_weights(const char *weight_file)

0 commit comments

Comments
 (0)