detrium.nn.encoders.hybrid_encoder

RT-DETRv4: Painlessly Furthering Real-Time Object Detection with Vision Foundation Models Copyright (c) 2025 The RT-DETRv4 Authors. All Rights Reserved. --------------------------------------------------------------------------------- Modified from DEIM: DETR with Improved Matching for Fast Convergence Copyright (c) 2024 The DEIM Authors. All Rights Reserved.

导出符号 · HybridEncoder

class TransformerEncoderLayer(nn.Module)
名称类型默认值
d_model——
nhead——
dim_feedforward—2048
dropout—0.1
activation—'relu'
normalize_before—False
class HybridEncoder(nn.Module)
名称类型默认值
in_channels—[512, 1024, 2048]
feat_strides—[8, 16, 32]
hidden_dim—256
nhead—8
dim_feedforward—1024
dropout—0.0
enc_act—'gelu'
use_encoder_idx—[2]
num_encoder_layers—1
pe_temperature—10000
expansion—1.0
depth_mult—1.0
act—'silu'
eval_spatial_size—None
version—'dfine'
distill_teacher_dim—0