detrium.nn.backbones.hgnetv2

reference - https://github.com/PaddlePaddle/PaddleDetection/blob/develop/ppdet/modeling/backbones/hgnet_v2.py Copyright (c) 2024 The D-FINE Authors. All Rights Reserved.

导出符号 · HGNetv2

class HG_Stage(nn.Module)
名称类型默认值
in_chs——
mid_chs——
out_chs——
block_num——
layer_num——
downsample—True
light_block—False
kernel_size—3
use_lab—False
agg—'se'
drop_path—0.0
class HGNetv2(nn.Module)

HGNetV2 Args: stem_channels: list. Number of channels for the stem block. stage_type: str. The stage configuration of HGNet. such as the number of channels, stride, etc. use_lab: boolean. Whether to use LearnableAffineBlock in network. lr_mult_list: list. Control the learning rate of different stages. Returns: model: nn.Layer. Specific HGNetV2 model depends on args.

名称类型默认值
name——
use_lab—False
return_idx—[1, 2, 3]
freeze_stem_only—True
freeze_at—0
freeze_norm—True
pretrained—True
local_model_dir—'weight/hgnetv2/'