diff --git a/src/yolo_v2_class.cpp b/src/yolo_v2_class.cpp index e01dadbb..93812e7f 100644 --- a/src/yolo_v2_class.cpp +++ b/src/yolo_v2_class.cpp @@ -153,7 +153,7 @@ LIB_API Detector::Detector(std::string cfg_filename, std::string weight_filename char *cfgfile = const_cast(_cfg_filename.c_str()); char *weightfile = const_cast(_weight_filename.c_str()); - net = parse_network_cfg_custom(cfgfile, 1, 0); + net = parse_network_cfg_custom(cfgfile, 1, 1); if (weightfile) { load_weights(&net, weightfile); }