mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
Merge branch 'master' of pjreddie.com:jnet
Conflicts: src/cnn.c
This commit is contained in:
commit
b32a287e38
@ -655,9 +655,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];
|
||||||
@ -785,6 +784,9 @@ int main(int argc, char *argv[])
|
|||||||
//tune_VOC();
|
//tune_VOC();
|
||||||
//features_VOC_image(argv[1], argv[2], argv[3], 0);
|
//features_VOC_image(argv[1], argv[2], argv[3], 0);
|
||||||
//features_VOC_image(argv[1], argv[2], argv[3], 1);
|
//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]));
|
//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");
|
||||||
|
@ -37,6 +37,7 @@ data load_data_image_paths(char **paths, int n, char **labels, int k, int h, int
|
|||||||
d.shallow = 0;
|
d.shallow = 0;
|
||||||
d.X.rows = n;
|
d.X.rows = n;
|
||||||
d.X.vals = calloc(d.X.rows, sizeof(float*));
|
d.X.vals = calloc(d.X.rows, sizeof(float*));
|
||||||
|
d.X.cols = 0;
|
||||||
d.y = make_matrix(n, k);
|
d.y = make_matrix(n, k);
|
||||||
|
|
||||||
for(i = 0; i < n; ++i){
|
for(i = 0; i < n; ++i){
|
||||||
|
@ -199,6 +199,7 @@ void show_image_collapsed(image p, char *name)
|
|||||||
image make_empty_image(int h, int w, int c)
|
image make_empty_image(int h, int w, int c)
|
||||||
{
|
{
|
||||||
image out;
|
image out;
|
||||||
|
out.data = 0;
|
||||||
out.h = h;
|
out.h = h;
|
||||||
out.w = w;
|
out.w = w;
|
||||||
out.c = c;
|
out.c = c;
|
||||||
|
Loading…
Reference in New Issue
Block a user