diff --git a/darknet_ros/src/YoloObjectDetector.cpp b/darknet_ros/src/YoloObjectDetector.cpp index 321fea3ca..e6de97864 100644 --- a/darknet_ros/src/YoloObjectDetector.cpp +++ b/darknet_ros/src/YoloObjectDetector.cpp @@ -470,9 +470,6 @@ void YoloObjectDetector::setupNetwork(char *cfgfile, char *weightfile, char *dat fullScreen_ = fullscreen; printf("YOLO V3\n"); net_ = load_network(cfgfile, weightfile, 0); - if (weightfile) { - load_weights(net_, weightfile); - } set_batch_network(net_, 1); }