FcaNet icon indicating copy to clipboard operation
FcaNet copied to clipboard

Regarding the setting of c2wh = dict([(64,56), (128,28), (256,14) ,(512,7)]) in the fcanet.py file.

Open Max-Well-Wang opened this issue 3 years ago • 4 comments

In my model, the output feature map shape is (512, 16, 16), but I am worried that the adaptive_avg_pool2d() operation in the layer.py file will cause information loss. So I want to ask if the parameter: c2wh = dict([(64,56), ( 128,28), (256,14) ,(512,7)]) need to be changed?

Max-Well-Wang avatar Aug 22 '21 03:08 Max-Well-Wang

Change according to the corresponding size of the channel.

Max-Well-Wang avatar Aug 23 '21 11:08 Max-Well-Wang

@Max-Well-Wang First, the adaptive_avg_pool2d operation should not harm the performance since our model works well in all COCO experiments. The input size on COCO is much bigger than ImageNet.

Second, if you want to change the size, you can simply modify the c2wh dict. Make the item (512, 7) to (512, 16) should work.

cfzd avatar Aug 24 '21 02:08 cfzd

@Max-Well-Wang First, the adaptive_avg_pool2d operation should not harm the performance since our model works well in all COCO experiments. The input size on COCO is much bigger than ImageNet.

Second, if you want to change the size, you can simply modify the c2wh dict. Make the item (512, 7) to (512, 16) should work.

OK, thank you very much for your reply!

Max-Well-Wang avatar Aug 24 '21 03:08 Max-Well-Wang

请问top里面的最优频率分量 是不是只适用于77,一旦改变尺寸为1616 最优频率分量是否需要更换,还是仍起作用?

Lewis0427 avatar Sep 06 '21 06:09 Lewis0427