| | |
| | | |
| | | darknet.exe detector test data/voc.data yolo-voc.cfg yolo-voc.weights 009460.jpg |
| | | |
| | | darknet.exe detector test data/voc.data yolo-voc.cfg yolo-voc.weights -i 0 -thresh 0.2 |
| | | |
| | | darknet.exe detector test data/voc.data yolo-voc.cfg yolo-voc.weights -i 0 -thresh 0.1 dogr.jpg |
| | | |
| | | |
| | | pause |
| | |
| | | |
| | | |
| | | ./darknet detector test ./cfg/voc.data ./cfg/yolo-voc.cfg ./yolo-voc.weights dog.jpg -i 0 -thresh 0.2 |
| | | ./darknet detector test ./cfg/voc.data ./cfg/yolo-voc.cfg ./yolo-voc.weights data/dog.jpg -i 0 -thresh 0.2 |
| | | |
| | | |
| | | |
| | |
| | | std::string filename; |
| | | if (argc > 1) filename = argv[1]; |
| | | |
| | | Detector detector("yolo-voc.cfg", "yolo-voc.weights"); |
| | | Detector detector("cfg/yolo-voc.cfg", "yolo-voc.weights"); |
| | | |
| | | auto obj_names = objects_names_from_file("data/voc.names"); |
| | | std::string out_videofile = "result.avi"; |
| | |
| | | char *cfgfile = const_cast<char *>(cfg_filename.data()); |
| | | char *weightfile = const_cast<char *>(weight_filename.data()); |
| | | |
| | | net = parse_network_cfg(cfgfile); |
| | | net = parse_network_cfg_custom(cfgfile, 1); |
| | | if (weightfile) { |
| | | load_weights(&net, weightfile); |
| | | } |