BiSeNet icon indicating copy to clipboard operation
BiSeNet copied to clipboard

lack F.interpolate in bisenetv1.py

Open qixi666666 opened this issue 3 years ago • 6 comments
trafficstars

in bisenetv1.py class ContextPath lack F.interpolate about avg in line 141, so the result is wrong

qixi666666 avatar Jun 09 '22 08:06 qixi666666

What result is wrong? Would you be more specific?

CoinCheung avatar Jun 16 '22 00:06 CoinCheung

avg should be avg_up = F.interpolate(avg, (H32, W32), mode='nearest'), then feat32_sum = feat32_arm + avg_up, if lack F.interpolate(avg, (H32, W32), mode='nearest'), avg only 1*1, feat32_sum = feat32_arm + avg will not report wrong, but the result is not true.

qixi666666 avatar Jun 16 '22 02:06 qixi666666

Have you compared the values?

CoinCheung avatar Jun 16 '22 02:06 CoinCheung

你可以直接看看原始的old / model.py ContextPath 中这部分的定义,确实少一块,上升的过程

qixi666666 avatar Jun 16 '22 02:06 qixi666666

This should bring no difference, since input shape is (1,1).

CoinCheung avatar Jun 16 '22 02:06 CoinCheung

not 1*1 , should be H32, W32 , both feat32_arm and avg should be H32, W32, then +

qixi666666 avatar Jun 16 '22 02:06 qixi666666

The feature will be broadcast to H32 and W32 before adding.

CoinCheung avatar Aug 23 '22 12:08 CoinCheung