theFoxofSky / ddfnet

The official implementation of the CVPR2021 paper: Decoupled Dynamic Filter Networks
MIT License
214 stars 34 forks source link

question #36

Open 1741607718 opened 2 years ago

1741607718 commented 2 years ago

ddf能否支持组卷积,不同batch之间不共享权重?

theFoxofSky commented 2 years ago

1.支持组卷积;2.本来不同batch就不共享权重,不然为啥叫动态滤波器

1741607718 commented 2 years ago

        g = self.head         k = self.kernel_size         s = self.stride         # (b,c,h,w)->(b,c,1,1)->(b,c//4,1,1)->(b,cKK,1,1)         channel_filter = self.channel_branch(x).reshape(bg, c//g, k, k)         #(b,c,h,w)->(b,kk,h//s,w//s)         spatial_filter = self.spatial_branch(x).reshape(b*g, -1, h//s, w//s)

这里的g是指的分组的组数吗?

------------------ 原始邮件 ------------------ 发件人: "theFoxofSky/ddfnet" @.>; 发送时间: 2022年9月22日(星期四) 晚上8:46 @.>; @.**@.>; 主题: Re: [theFoxofSky/ddfnet] question (Issue #36)

1.支持组卷积;2.本来不同batch就不共享权重,不然为啥叫动态滤波器

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

theFoxofSky commented 2 years ago

是的