Merge branch 'master' of pjreddie.com:jnet

Conflicts:
	src/cnn.c
This commit is contained in:
Joseph Redmon 2014-07-17 10:17:52 -07:00
commit b32a287e38
3 changed files with 6 additions and 2 deletions

View File

@ -655,9 +655,8 @@ void visualize_cat()
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;
network net = parse_network_cfg("cfg/voc_imagenet.cfg");
char image_path[1024];
@ -785,6 +784,9 @@ int main(int argc, char *argv[])
//tune_VOC();
//features_VOC_image(argv[1], argv[2], argv[3], 0);
//features_VOC_image(argv[1], argv[2], argv[3], 1);
//train_VOC();
//features_VOC_image(argv[1], argv[2], argv[3], 0, 4);
//features_VOC_image(argv[1], argv[2], argv[3], 1, 4);
//features_VOC_image_size(argv[1], atoi(argv[2]), atoi(argv[3]));
//visualize_imagenet_features("data/assira/train.list");
//visualize_imagenet_topk("data/VOC2012.list");

View File

@ -37,6 +37,7 @@ data load_data_image_paths(char **paths, int n, char **labels, int k, int h, int
d.shallow = 0;
d.X.rows = n;
d.X.vals = calloc(d.X.rows, sizeof(float*));
d.X.cols = 0;
d.y = make_matrix(n, k);
for(i = 0; i < n; ++i){

View File

@ -199,6 +199,7 @@ void show_image_collapsed(image p, char *name)
image make_empty_image(int h, int w, int c)
{
image out;
out.data = 0;
out.h = h;
out.w = w;
out.c = c;