Bounding box detection
PyTorch
File size: 2,841 Bytes
e8cc13d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
{
  "ANCHOR_GENERATOR": {
    "ANGLES": [
      [
        -90.0,
        0.0,
        90.0
      ]
    ],
    "ASPECT_RATIOS": [
      [
        0.5,
        1.0,
        2.0
      ]
    ],
    "OFFSET": 0,
    "SIZES": [
      [
        64,
        128,
        256,
        512
      ]
    ]
  },
  "BACKBONE": {
    "FREEZE_AT": 2
  },
  "INPUT": {
    "FORMAT": "BGR",
    "MAX_SIZE_TEST": 1333,
    "MAX_SIZE_TRAIN": 1333,
    "MIN_SIZE_TEST": 800,
    "MIN_SIZE_TRAIN": 640
  },
  "MAX_DETECTIONS": 36,
  "MIN_DETECTIONS": 36,
  "MODEL": {
    "CHKPOINT": "",
    "DEVICE": "cpu",
    "LOAD_PROPOSALS": false,
    "MAX_POOL": true,
    "PIXEL_MEAN": [
      102.9801,
      115.9465,
      122.7717
    ],
    "PIXEL_STD": [
      1.0,
      1.0,
      1.0
    ]
  },
  "PAD_VALUE": 0.0,
  "PROPOSAL_GENERATOR": {
    "HIDDEN_CHANNELS": 512,
    "MIN_SIZE": 0.0
  },
  "RESNETS": {
    "DEPTH": 101,
    "NORM": "BN",
    "NUM_GROUPS": 1,
    "OUT_FEATURES": [
      "res4"
    ],
    "RES2_OUT_CHANNELS": 256,
    "RES5_DILATION": 1,
    "STEM_OUT_CHANNELS": 64,
    "STRIDE_IN_1X1": true,
    "WIDTH_PER_GROUP": 64
  },
  "ROI_BOX_HEAD": {
    "ATTR": true,
    "BBOX_REG_WEIGHTS": [
      10.0,
      10.0,
      5.0,
      5.0
    ],
    "CLS_AGNOSTIC_BBOX_REG": false,
    "CONV_DIM": 256,
    "FC_DIM": 1024,
    "NUM_ATTRS": 400,
    "NUM_CONV": 0,
    "NUM_FC": 0,
    "POOLER_RESOLUTION": 14,
    "POOLER_SAMPLING_RATIO": 0,
    "RES5HALVE": false,
    "SMOOTH_L1_BETA": 0.0
  },
  "ROI_HEADS": {
    "IN_FEATURES": [
      "res4"
    ],
    "IOU_LABELS": [
      0,
      1
    ],
    "IOU_THRESHOLDS": [
      0.5
    ],
    "NMS_THRESH_TEST": [
      0.5,
      0.6,
      0.7
    ],
    "NUM_CLASSES": 1600,
    "POSITIVE_FRACTION": 0.25,
    "PROPOSAL_APPEND_GT": true,
    "SCORE_THRESH_TEST": 0.2
  },
  "RPN": {
    "BATCH_SIZE_PER_IMAGE": 1,
    "BBOX_REG_WEIGHTS": [
      1.0,
      1.0,
      1.0,
      1.0
    ],
    "BOUNDARY_THRESH": -1.0,
    "IN_FEATURES": [
      "res4"
    ],
    "IOU_LABELS": [
      0.0,
      -1.0,
      1.0
    ],
    "IOU_THRESHOLDS": [
      0.3,
      0.7
    ],
    "LOSS_WEIGHT": 1.0,
    "NMS_THRESH": 0.7,
    "POSITIVE_FRACTION": 0.5,
    "POST_NMS_TOPK_TEST": 300,
    "POST_NMS_TOPK_TRAIN": 2000,
    "PRE_NMS_TOPK_TEST": 6000,
    "PRE_NMS_TOPK_TRAIN": 12000,
    "SMOOTH_L1_BETA": 0.0
  },
  "SIZE_DIVISIBILITY": 0,
  "SOLVER": {
    "BASE_LR": 0.002,
    "BIAS_LR_FACTOR": 1.0,
    "CHECKPOINT_PERIOD": 5000,
    "GAMMA": 0.1,
    "IMS_PER_BATCH": 1.0,
    "LR_SCHEDULER_NAME": "warmupmultisteplr",
    "MAX_ITER": 270000,
    "MOMENTUM": 0.9,
    "STEPS": [
      210000,
      250000
    ],
    "WARMUP_FACTOR": 0.001,
    "WARMUP_ITERS": 1000,
    "WARMUP_METHOD": "linear",
    "WEIGHT_DECAY": 0.0001,
    "WEIGHT_DECAY_BIAS": 0.0,
    "WEIGHT_DECAY_NORM": 0.0
  }
}