|
|
@ -651,9 +651,8 @@ void visualize_cat() |
|
|
|
cvWaitKey(0); |
|
|
|
cvWaitKey(0); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void features_VOC_image(char *image_file, char *image_dir, char *out_dir, int flip) |
|
|
|
void features_VOC_image(char *image_file, char *image_dir, char *out_dir, int flip, int interval) |
|
|
|
{ |
|
|
|
{ |
|
|
|
int interval = 4; |
|
|
|
|
|
|
|
int i,j; |
|
|
|
int i,j; |
|
|
|
network net = parse_network_cfg("cfg/voc_imagenet.cfg"); |
|
|
|
network net = parse_network_cfg("cfg/voc_imagenet.cfg"); |
|
|
|
char image_path[1024]; |
|
|
|
char image_path[1024]; |
|
|
@ -774,13 +773,13 @@ int main(int argc, char *argv[]) |
|
|
|
// test_im2row();
|
|
|
|
// test_im2row();
|
|
|
|
//test_split();
|
|
|
|
//test_split();
|
|
|
|
//test_ensemble();
|
|
|
|
//test_ensemble();
|
|
|
|
test_nist(); |
|
|
|
//test_nist();
|
|
|
|
//test_cifar10();
|
|
|
|
//test_cifar10();
|
|
|
|
//test_vince();
|
|
|
|
//test_vince();
|
|
|
|
//test_full();
|
|
|
|
//test_full();
|
|
|
|
//train_VOC();
|
|
|
|
//train_VOC();
|
|
|
|
//features_VOC_image(argv[1], argv[2], argv[3], 0);
|
|
|
|
features_VOC_image(argv[1], argv[2], argv[3], 0, 4); |
|
|
|
//features_VOC_image(argv[1], argv[2], argv[3], 1);
|
|
|
|
features_VOC_image(argv[1], argv[2], argv[3], 1, 4); |
|
|
|
//features_VOC_image_size(argv[1], atoi(argv[2]), atoi(argv[3]));
|
|
|
|
//features_VOC_image_size(argv[1], atoi(argv[2]), atoi(argv[3]));
|
|
|
|
//visualize_imagenet_features("data/assira/train.list");
|
|
|
|
//visualize_imagenet_features("data/assira/train.list");
|
|
|
|
//visualize_imagenet_topk("data/VOC2012.list");
|
|
|
|
//visualize_imagenet_topk("data/VOC2012.list");
|
|
|
|