Closed javalier closed 2 years ago
Hope you don't mind my reply in english:
DCN in FairMOT is usually used to replace the regular Conv2D layer during upsampling of backbone features. So, if you don't want to use DCN, you can just replace any DCN layer back with Conv2D. For example, the resnet_dcn here imports DCN but does not use it in the upsampling layer. This might be a good reference for you.
For my implementation of FairMOT, DCN is not used in the YOLOX detector at all. So you can modify the featurefusor class in the reID head to avoid DCN and see how it performs. Hope this helps.
谢谢,我就是想把resnet+attention添加到fairmot中,但是无法实现正确的生成模型,在你举例的网络resnet_dcn 260line 最后一个forward如果不使用x=self.deconv_layers(x),怎样才能返回合适的x,来生成model.(有些冒昧,谢谢你)
Are you referring to how to get the upscaling to the correct heatmap size? The main layer that upsamples the features is the ConvTranspose2D layer with stride 2. It will basically 2x the image size.
目前基本所有的fairmot框架的检测网络都采用DCN结构,对于一些其他普遍性的检测网络,如何修改能够直接在fairmot上运行呢,比如最基础的resnet网络,我苦于无法将改进的网络结构应用在此框架之下。