dog-qiuqiu / MobileNet-Yolo

MobileNetV2-YoloV3-Nano: 0.5BFlops 3MB HUAWEI P40: 6ms/img, YoloFace-500k:0.1Bflops 420KB:fire::fire::fire:
Other
1.71k stars 277 forks source link

Bug's found in your resnext152-32x4d.cfg #16

Open Chrisa142857 opened 4 years ago

Chrisa142857 commented 4 years ago

Hello! I've met a bug when I use your resnext152-32x4d.cfg file. My project was forked from ultralytics/yolov3. Bug description: The size of feature maps are unmatched to do 'shortcut' op.
Where: The config file of ResneXt152 backbone - resnext152-32x4d.cfg.

The code as follow is one part of the cfg file and it's shown that feature maps in sample level X/2 cannot ADD with sample level X.

[shortcut] # -4 (sample level X) ... [convolutional]# -3 ... [convolutional]# -2 (Downsample) groups = 32 batch_normalize=1 filters=128 size=3 stride=2 pad=1 activation=leaky [convolutional]# -1 (input of the shortcut) ... [shortcut]# 0 (sample level X/2) from=-4 activation=leaky