Fixed DLL/SO

This commit is contained in:
AlexeyAB
2019-01-28 20:32:30 +03:00
parent 3692c174c5
commit 0e1f3eaf35

View File

@ -123,7 +123,7 @@ LIB_API Detector::Detector(std::string cfg_filename, std::string weight_filename
char *cfgfile = const_cast<char *>(cfg_filename.data());
char *weightfile = const_cast<char *>(weight_filename.data());
net = parse_network_cfg_custom(cfgfile, 1);
net = parse_network_cfg_custom(cfgfile, 1, 0);
if (weightfile) {
load_weights(&net, weightfile);
}