Upload rtdetr_r50vdcoco.yml
Browse files
configs/rtdetr/include/rtdetr_r50vdcoco.yml
ADDED
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
task: detection
|
2 |
+
|
3 |
+
model: RTDETR
|
4 |
+
criterion: SetCriterion
|
5 |
+
postprocessor: RTDETRPostProcessor
|
6 |
+
|
7 |
+
|
8 |
+
RTDETR:
|
9 |
+
backbone: PResNet
|
10 |
+
encoder: HybridEncoder
|
11 |
+
decoder: RTDETRTransformer
|
12 |
+
multi_scale: [480, 512, 544, 576, 608, 640, 640, 640, 672, 704, 736, 768, 800]
|
13 |
+
|
14 |
+
PResNet:
|
15 |
+
depth: 50
|
16 |
+
variant: d
|
17 |
+
freeze_at: 0
|
18 |
+
return_idx: [1, 2, 3]
|
19 |
+
num_stages: 4
|
20 |
+
freeze_norm: True
|
21 |
+
pretrained: True
|
22 |
+
|
23 |
+
HybridEncoder:
|
24 |
+
in_channels: [512, 1024, 2048]
|
25 |
+
feat_strides: [8, 16, 32]
|
26 |
+
|
27 |
+
# intra
|
28 |
+
hidden_dim: 256
|
29 |
+
use_encoder_idx: [2]
|
30 |
+
num_encoder_layers: 1
|
31 |
+
nhead: 8
|
32 |
+
dim_feedforward: 1024
|
33 |
+
dropout: 0.
|
34 |
+
enc_act: 'gelu'
|
35 |
+
pe_temperature: 10000
|
36 |
+
|
37 |
+
# cross
|
38 |
+
expansion: 1.0
|
39 |
+
depth_mult: 1
|
40 |
+
act: 'silu'
|
41 |
+
|
42 |
+
# eval
|
43 |
+
eval_spatial_size: [640, 640]
|
44 |
+
|
45 |
+
|
46 |
+
RTDETRTransformer:
|
47 |
+
feat_channels: [256, 256, 256]
|
48 |
+
feat_strides: [8, 16, 32]
|
49 |
+
hidden_dim: 256
|
50 |
+
num_levels: 3
|
51 |
+
|
52 |
+
num_queries: 300
|
53 |
+
|
54 |
+
num_decoder_layers: 6
|
55 |
+
num_denoising: 100
|
56 |
+
|
57 |
+
eval_idx: -1
|
58 |
+
eval_spatial_size: [640, 640]
|
59 |
+
|
60 |
+
cope: 'none'
|
61 |
+
|
62 |
+
use_focal_loss: True
|
63 |
+
|
64 |
+
RTDETRPostProcessor:
|
65 |
+
num_top_queries: 300
|
66 |
+
|
67 |
+
|
68 |
+
SetCriterion:
|
69 |
+
weight_dict: {loss_vfl: 1, loss_bbox: 5, loss_giou: 2,}
|
70 |
+
losses: ['vfl', 'boxes', ]
|
71 |
+
alpha: 0.75
|
72 |
+
gamma: 2.0
|
73 |
+
|
74 |
+
matcher:
|
75 |
+
type: HungarianMatcher
|
76 |
+
weight_dict: {cost_class: 2, cost_bbox: 5, cost_giou: 2}
|
77 |
+
# use_focal_loss: True
|
78 |
+
alpha: 0.25
|
79 |
+
gamma: 2.0
|
80 |
+
|
81 |
+
|
82 |
+
|