fix rtmdet-s cfg and neck ()

pull/384/head
RangiLyu 2023-01-06 11:40:19 +08:00 committed by GitHub
parent 28439f102a
commit 5172805dae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -74,6 +74,6 @@ custom_hooks = [
priority=49),
dict(
type='mmdet.PipelineSwitchHook',
switch_epoch=280,
switch_epoch=_base_.max_epochs - _base_.stage2_num_epochs,
switch_pipeline=train_pipeline_stage2)
]

View File

@ -126,7 +126,7 @@ class CSPNeXtPAFPN(BaseYOLONeck):
conv_cfg=self.conv_cfg,
norm_cfg=self.norm_cfg,
act_cfg=self.act_cfg)
elif idx == 2:
else:
return nn.Sequential(
CSPLayer(
self.in_channels[idx - 1] * 2,