| | |
| | | #include "parser.h" |
| | | #include "option_list.h" |
| | | #include "blas.h" |
| | | #include "classifier.h" |
| | | #include <sys/time.h> |
| | | |
| | | #ifdef OPENCV |
| | |
| | | load_weights(&net, weightfile); |
| | | } |
| | | printf("Learning Rate: %g, Momentum: %g, Decay: %g\n", net.learning_rate, net.momentum, net.decay); |
| | | int imgs = 1024; |
| | | int imgs = net.batch; |
| | | |
| | | list *options = read_data_cfg(datacfg); |
| | | |
| | |
| | | args.w = net.w; |
| | | args.h = net.h; |
| | | |
| | | args.min = net.w; |
| | | args.min = net.min_crop; |
| | | args.max = net.max_crop; |
| | | args.size = net.w; |
| | | |
| | |
| | | |
| | | char **labels = get_labels(label_list); |
| | | list *plist = get_paths(valid_list); |
| | | int scales[] = {160, 192, 224, 288, 320, 352, 384}; |
| | | int scales[] = {192, 224, 288, 320, 352}; |
| | | int nscales = sizeof(scales)/sizeof(scales[0]); |
| | | |
| | | char **paths = (char **)list_to_array(plist); |