mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
Use -dont_show -show_imgs for Training - saves augmented images without showing
This commit is contained in:
12
src/data.c
12
src/data.c
@ -856,8 +856,10 @@ data load_data_detection(int n, char **paths, int m, int w, int h, int c, int bo
|
|||||||
}
|
}
|
||||||
|
|
||||||
save_image(ai, buff);
|
save_image(ai, buff);
|
||||||
show_image(ai, buff);
|
if (show_imgs == 1) {
|
||||||
wait_until_press_key_cv();
|
show_image(ai, buff);
|
||||||
|
wait_until_press_key_cv();
|
||||||
|
}
|
||||||
printf("\nYou use flag -show_imgs, so will be saved aug_...jpg images. Click on window and press ESC button \n");
|
printf("\nYou use flag -show_imgs, so will be saved aug_...jpg images. Click on window and press ESC button \n");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -951,8 +953,10 @@ data load_data_detection(int n, char **paths, int m, int w, int h, int c, int bo
|
|||||||
}
|
}
|
||||||
|
|
||||||
show_image(sized, buff);
|
show_image(sized, buff);
|
||||||
save_image(sized, buff);
|
if (show_imgs == 1) {
|
||||||
wait_until_press_key_cv();
|
save_image(sized, buff);
|
||||||
|
wait_until_press_key_cv();
|
||||||
|
}
|
||||||
printf("\nYou use flag -show_imgs, so will be saved aug_...jpg images. Press Enter: \n");
|
printf("\nYou use flag -show_imgs, so will be saved aug_...jpg images. Press Enter: \n");
|
||||||
getchar();
|
getchar();
|
||||||
}
|
}
|
||||||
|
@ -127,6 +127,7 @@ void train_detector(char *datacfg, char *cfgfile, char *weightfile, int *gpus, i
|
|||||||
args.exposure = net.exposure;
|
args.exposure = net.exposure;
|
||||||
args.saturation = net.saturation;
|
args.saturation = net.saturation;
|
||||||
args.hue = net.hue;
|
args.hue = net.hue;
|
||||||
|
if (dont_show && show_imgs) show_imgs = 2;
|
||||||
args.show_imgs = show_imgs;
|
args.show_imgs = show_imgs;
|
||||||
|
|
||||||
#ifdef OPENCV
|
#ifdef OPENCV
|
||||||
|
Reference in New Issue
Block a user