cfzd / FcaNet

FcaNet: Frequency Channel Attention Networks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

2d dct FLOPs computing method

TianhaoFu opened this issue · comments

Hi, I noticed that in your paper you computed FCAnet model FLOPs.

I wonder how do you compute the FLOPs of 2d dct? Could you provide your formula or code?

Thanks!

We compute the weight of 2d dct during initialization. The dct kernel is fixed and has no extra computation cost in the training phase.

We compute the weight of 2d dct during initialization. The dct kernel is fixed and has no extra computation cost in the training phase.

Thanks.
Leave the paper aside. Do you know how to compute the FLOPs of 2d dct?

If you can provide me some idea or code or fomula about that, I will be thanks so much:) 👍 @peterzpy

commented

@TianhaoFu
The realization of 2d dct is actually element product. For a image with a size h x w and a dct basis with a size of h x w, the re would be total hw times of multiplication.

Thanks