This repository was archived by the owner on Mar 12, 2024. It is now read-only.
File tree 3 files changed +1
-4
lines changed
3 files changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ def add_detr_config(cfg):
23
23
cfg .MODEL .DETR .ENC_LAYERS = 6
24
24
cfg .MODEL .DETR .DEC_LAYERS = 6
25
25
cfg .MODEL .DETR .PRE_NORM = False
26
- cfg .MODEL .DETR .PASS_POS_AND_QUERY = True
27
26
28
27
cfg .MODEL .DETR .HIDDEN_DIM = 256
29
28
cfg .MODEL .DETR .NUM_OBJECT_QUERIES = 100
Original file line number Diff line number Diff line change @@ -85,7 +85,6 @@ def __init__(self, cfg):
85
85
enc_layers = cfg .MODEL .DETR .ENC_LAYERS
86
86
dec_layers = cfg .MODEL .DETR .DEC_LAYERS
87
87
pre_norm = cfg .MODEL .DETR .PRE_NORM
88
- pass_pos_and_query = cfg .MODEL .DETR .PASS_POS_AND_QUERY
89
88
90
89
# Loss parameters:
91
90
giou_weight = cfg .MODEL .DETR .GIOU_WEIGHT
@@ -107,7 +106,6 @@ def __init__(self, cfg):
107
106
num_decoder_layers = dec_layers ,
108
107
normalize_before = pre_norm ,
109
108
return_intermediate_dec = deep_supervision ,
110
- pass_pos_and_query = pass_pos_and_query ,
111
109
)
112
110
113
111
self .detr = DETR (
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ def forward(self, samples: NestedTensor):
56
56
- "aux_outputs": Optional, only returned when auxilary losses are activated. It is a list of
57
57
dictionnaries containing the two above keys for each decoder layer.
58
58
"""
59
- if not isinstance (samples , NestedTensor ):
59
+ if isinstance (samples , list ):
60
60
samples = nested_tensor_from_tensor_list (samples )
61
61
features , pos = self .backbone (samples )
62
62
You can’t perform that action at this time.
0 commit comments