mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
cheating a little here
This commit is contained in:
parent
c314dff29d
commit
2710d63257
@ -381,7 +381,7 @@ int main(int argc, char **argv)
|
|||||||
} else if (0 == strcmp(argv[1], "detector")){
|
} else if (0 == strcmp(argv[1], "detector")){
|
||||||
run_detector(argc, argv);
|
run_detector(argc, argv);
|
||||||
} else if (0 == strcmp(argv[1], "detect")){
|
} else if (0 == strcmp(argv[1], "detect")){
|
||||||
float thresh = find_float_arg(argc, argv, "-thresh", .25);
|
float thresh = find_float_arg(argc, argv, "-thresh", .24);
|
||||||
char *filename = (argc > 4) ? argv[4]: 0;
|
char *filename = (argc > 4) ? argv[4]: 0;
|
||||||
test_detector("cfg/coco.data", argv[2], argv[3], filename, thresh);
|
test_detector("cfg/coco.data", argv[2], argv[3], filename, thresh);
|
||||||
} else if (0 == strcmp(argv[1], "cifar")){
|
} else if (0 == strcmp(argv[1], "cifar")){
|
||||||
|
@ -497,7 +497,7 @@ void test_detector(char *datacfg, char *cfgfile, char *weightfile, char *filenam
|
|||||||
void run_detector(int argc, char **argv)
|
void run_detector(int argc, char **argv)
|
||||||
{
|
{
|
||||||
char *prefix = find_char_arg(argc, argv, "-prefix", 0);
|
char *prefix = find_char_arg(argc, argv, "-prefix", 0);
|
||||||
float thresh = find_float_arg(argc, argv, "-thresh", .25);
|
float thresh = find_float_arg(argc, argv, "-thresh", .24);
|
||||||
int cam_index = find_int_arg(argc, argv, "-c", 0);
|
int cam_index = find_int_arg(argc, argv, "-c", 0);
|
||||||
int frame_skip = find_int_arg(argc, argv, "-s", 0);
|
int frame_skip = find_int_arg(argc, argv, "-s", 0);
|
||||||
if(argc < 4){
|
if(argc < 4){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user