-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathconfig.h
57 lines (47 loc) · 1006 Bytes
/
config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#ifndef _CONFIG_H_
#define _CONFIG_H_
#include <map>
#include <vector>
typedef struct config{
int per_nms_topN;
int after_nms_topN;
int target_size;
float nms_overlap_thres_proposal;
float num_overlap_thres_fcnn;
int feat_stride;
int max_size;
int anchors[9][4];
int test_min_box_size;
double test_fcnn_thres_score;
config(){
per_nms_topN = 6000;
after_nms_topN = 300;
target_size = 600;
num_overlap_thres_fcnn = 0.3;
max_size = 1000;
feat_stride = 16;
test_min_box_size = 16;
test_fcnn_thres_score = 0.6;
nms_overlap_thres_proposal = 0.70;
int temp[9][4] = {
{ -83, -39, 100, 56 },
{ -175, -87, 192, 104 },
{ -359, -183, 376, 200 },
{ -55, -55, 72, 72 },
{ -119, -119, 136, 136 },
{ -247, -247, 264, 264 },
{ -35, -79, 52, 96 },
{ -79, -167, 96, 184 },
{ -167, -343, 184, 360 }
};
memcpy(anchors, temp, 9 * 4 * sizeof(int));
}
}config;
typedef struct aboxes{
float x1;
float y1;
float x2;
float y2;
float score;
}aboxes;
#endif