未验证 提交 657f8eab 编写于 作者: F Feng Ni 提交者: GitHub

fix hrnet downsample (#6886)

上级 8ab2b837
......@@ -36,6 +36,7 @@ from . import tood
from . import retinanet
from . import bytetrack
from . import yolox
from . import pose3d_metro
from .meta_arch import *
from .faster_rcnn import *
......
......@@ -34,6 +34,7 @@ from . import csp_darknet
from . import convnext
from . import vision_transformer
from . import mobileone
from . import trans_encoder
from .vgg import *
from .resnet import *
......
......@@ -723,11 +723,10 @@ class HRNet(nn.Layer):
multi_scale_output=len(return_idx) > 1,
name="st4")
if self.downsample:
self.incre_modules, self.downsamp_modules, \
self.final_layer = self._make_head(channels_4, norm_momentum=norm_momentum, has_se=self.has_se)
self.classifier = nn.Linear(2048, 1000)
def _make_layer(self,
block,
inplanes,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册