fix(knowing framework/yolov2 region layer): free region layer thresholds

This commit is contained in:
yangtuo250
2021-12-16 10:39:50 +08:00
parent c782dd26c4
commit 62df72af5b
7 changed files with 42 additions and 22 deletions

View File

@@ -19,7 +19,8 @@ void simple_CSV_read()
fin = open(CSV_PATH, O_RDONLY);
if (!fin) {
printf("Error open file %s", CSV_PATH);
exit(-1);
// exit(-1);
return;
}
read(fin, buffer, sizeof(buffer));
close(fin);

View File

@@ -27,7 +27,7 @@
"kmodel_size": 2714044,
"obj_thresh": [
0.7,
0.9
0.99
],
"labels": [
"head",

View File

@@ -7,11 +7,10 @@ static void detect_app(int argc, char *argv[])
{
if (2 != argc) {
printf("Usage: detect_app <ABSOLUTE_CONFIG_JSON_PATH>");
exit(-1);
} else {
k210_detect(argv[1]);
}
k210_detect(argv[1]);
return;
}
// clang-format off