| | |
| | | sprintf(buff, "%s/%s_%d.weights",backup_directory,base, epoch); |
| | | save_weights(net, buff); |
| | | } |
| | | if(*net.seen%1000 == 0){ |
| | | char buff[256]; |
| | | sprintf(buff, "%s/%s.backup",backup_directory,base); |
| | | save_weights(net, buff); |
| | | } |
| | | } |
| | | char buff[256]; |
| | | sprintf(buff, "%s/%s.weights", backup_directory, base); |
| | |
| | | char *label_list = option_find_str(options, "labels", "data/labels.list"); |
| | | char *valid_list = option_find_str(options, "valid", "data/train.list"); |
| | | int classes = option_find_int(options, "classes", 2); |
| | | int topk = option_find_int(options, "topk", 1); |
| | | int topk = option_find_int(options, "top", 1); |
| | | |
| | | char **labels = get_labels(label_list); |
| | | list *plist = get_paths(valid_list); |
| | |
| | | |
| | | list *options = read_data_cfg(datacfg); |
| | | |
| | | char *label_list = option_find_str(options, "labels", "data/labels.list"); |
| | | char *name_list = option_find_str(options, "names", 0); |
| | | if(!name_list) name_list = option_find_str(options, "labels", "data/labels.list"); |
| | | int top = option_find_int(options, "top", 1); |
| | | |
| | | int i = 0; |
| | | char **names = get_labels(label_list); |
| | | char **names = get_labels(name_list); |
| | | clock_t time; |
| | | int indexes[10]; |
| | | char buff[256]; |
| | |
| | | |
| | | int i; |
| | | if (target_layer >= 0){ |
| | | layer l = net.layers[target_layer]; |
| | | //layer l = net.layers[target_layer]; |
| | | } |
| | | |
| | | for(i = 0; i < val.X.rows; ++i){ |