string input and flir test

This commit is contained in:
mbosi
2019-09-14 19:03:13 +02:00
parent 041968f38a
commit 8c629ebe7b
14 changed files with 1198 additions and 608 deletions
+2 -2
View File
@@ -11,14 +11,14 @@
namespace tk { namespace dnn {
Yolo::Yolo(Network *net, int classes, int num, const char* fname_weights) :
Yolo::Yolo(Network *net, int classes, int num, std::string fname_weights) :
Layer(net) {
this->classes = classes;
this->num = num;
// load anchors
if(fname_weights != nullptr) {
if(fname_weights != "") {
int seek = 0;
readBinaryFile(fname_weights, num, &mask_h, &mask_d, seek);
seek += num;