"tools/vscode:/vscode.git/clone" did not exist on "c4033be4f7273c6083e6880ddd51651acb2feead"
detr_model.json 3.23 KB
Newer Older
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
{
    "type": "DETR",
    "num_queries": 100,
    "data_preprocessor": {
        "type": "DetDataPreprocessor",
        "mean": [123.675, 116.28, 103.53],
        "std": [58.395, 57.12, 57.375],
        "bgr_to_rgb": true,
        "pad_size_divisor": 1
    },
    "backbone": {
        "type": "ResNet",
        "depth": 50,
        "num_stages": 4,
        "out_indices": [3],
        "frozen_stages": 1,
        "norm_cfg": {
            "type": "BN",
            "requires_grad": false
        },
        "norm_eval": true,
        "style": "pytorch",
        "init_cfg": {
            "type": "Pretrained",
            "checkpoint": "torchvision://resnet50"
        }
    },
    "neck": {
        "type": "ChannelMapper",
        "in_channels": [2048],
        "kernel_size": 1,
        "out_channels": 256,
        "num_outs": 1
    },
    "encoder": {
        "num_layers": 6,
        "layer_cfg": {
            "self_attn_cfg": {
                "embed_dims": 256,
                "num_heads": 8,
                "dropout": 0.1,
                "batch_first": true
            },
            "ffn_cfg": {
                "embed_dims": 256,
                "feedforward_channels": 2048,
                "num_fcs": 2,
                "ffn_drop": 0.1,
                "act_cfg": {
                    "type": "ReLU",
                    "inplace": true
                }
            }
        }
    },
    "decoder": {
        "num_layers": 6,
        "layer_cfg": {
            "self_attn_cfg": {
                "embed_dims": 256,
                "num_heads": 8,
                "dropout": 0.1,
                "batch_first": true
            },
            "cross_attn_cfg": {
                "embed_dims": 256,
                "num_heads": 8,
                "dropout": 0.1,
                "batch_first": true
            },
            "ffn_cfg": {
                "embed_dims": 256,
                "feedforward_channels": 2048,
                "num_fcs": 2,
                "ffn_drop": 0.1,
                "act_cfg": {
                    "type": "ReLU",
                    "inplace": true
                }
            }
        },
        "return_intermediate": true
    },
    "positional_encoding": {
        "num_feats": 128,
        "normalize": true
    },
    "bbox_head": {
        "type": "DETRHead",
        "num_classes": 80,
        "embed_dims": 256,
        "loss_cls": {
            "type": "CrossEntropyLoss",
            "bg_cls_weight": 0.1,
            "use_sigmoid": false,
            "loss_weight": 1.0,
            "class_weight": 1.0
        },
        "loss_bbox": {
            "type": "L1Loss",
            "loss_weight": 5.0
        },
        "loss_iou": {
            "type": "GIoULoss",
            "loss_weight": 2.0
        }
    },
    "train_cfg": {
        "assigner": {
            "type":
            "HungarianAssigner",
            "match_costs": [{
                "type": "ClassificationCost",
                "weight": 1.0
            }, {
                "type": "BBoxL1Cost",
                "weight": 5.0,
                "box_format": "xywh"
            }, {
                "type": "IoUCost",
                "iou_mode": "giou",
                "weight": 2.0
            }]
        }
    },
    "test_cfg": {
        "max_per_img": 100
    }
}