FcaNet
FcaNet copied to clipboard
FcaNet: Frequency Channel Attention Networks
Hi, 请问,如果通道不分组,是不是用以下代码就可以? > def get_dct_filter(self, tile_size_x, tile_size_y, mapper_x, mapper_y, channel): > dct_filter = torch.zeros(channel, tile_size_x, tile_size_y) > for i in range(channel): > for _, (u_x, v_y) in enumerate(zip(mapper_x, mapper_y)): >...
通道切分
您好,看了您的代码,但是没有找到通道切分是在哪里进行的,方便赐教一下吗?
向量维度
top1和top2操作后出来的向量维度是一样的吗
输入要经过下采样和上采样,输入图片也就需要缩小和放大好几次,那我是不是要在__init__就把input size传进去,有什么办法能实时获取输入大小吗? 我有尝试在forward函数里获取x的大小,但后面训练很慢,我就意识到dct应该需要在搭建网络时预生成。
最优频率分量问题
请问top里面的最优频率分量 是不是只适用于7*7,一旦改变尺寸为48*48 最优频率分量是否需要更换,还是仍起作用?请指点一下
Regarding the setting of c2wh = dict([(64,56), (128,28), (256,14) ,(512,7)]) in the fcanet.py file.
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...
您好,非常感谢您的杰出工作,我使用了您的代码和模型在imagenet上FcaNet50得到的验证集准确率为78.39,请问是正常的吗,环境是Ubuntu20.04,cuda11.6,pytorch1.10,4卡3090,期待您的回复
How can I set dct_h and dct_w if i want to add FCA layer into another model. My feature maps for the layer I want to inset Fca layer are...
get_freq_indices函数中的列表内容是用什么方法预先定义的呢,因为我想把您的工作迁移到一维数据上面
您好,请问如果想要在三维网络中应用FCA应该如何改动