GithubHelp home page GithubHelp logo

关于7X7频域的问题 about fcanet HOT 4 OPEN

cfzd avatar cfzd commented on August 20, 2024
关于7X7频域的问题

from fcanet.

Comments (4)

cfzd avatar cfzd commented on August 20, 2024

@Soso-developer
你的理解是对的,14x14的最低频和7x7的最低频是不一样的,可以说7x7每个频谱“更宽”一些,我们总是把图像缩放到7x7再提取频谱的。

from fcanet.

Soso-developer avatar Soso-developer commented on August 20, 2024

@Soso-developer 你的理解是对的,14x14的最低频和7x7的最低频是不一样的,可以说7x7每个频谱“更宽”一些,我们总是把图像缩放到7x7再提取频谱的。

看到您讲的:“我们总是把图像缩放到7x7再提取频谱的”,也就是说不同大小图像均需要压缩到7X7
请问压缩具体是如何压缩的呢?这个操作会对图像本身频谱产生影响吗?

from fcanet.

cfzd avatar cfzd commented on August 20, 2024

@cfzd
抱歉,我搞错了,太久了都忘记了,实际上我们在提取频谱时会提取一个相对位置的频率,可以看看这部分代码:

FcaNet/model/layer.py

Lines 38 to 41 in aa5fb63

mapper_x = [temp_x * (dct_h // 7) for temp_x in mapper_x]
mapper_y = [temp_y * (dct_w // 7) for temp_y in mapper_y]
# make the frequencies in different sizes are identical to a 7x7 frequency space
# eg, (2,2) in 14x14 is identical to (1,1) in 7x7

所以当我们提取最低频时,在7x7的图上是(1,1)这个位置,而在14x14的图上是(2,2)这个位置

from fcanet.

Soso-developer avatar Soso-developer commented on August 20, 2024

好的理解了,感谢您的回答!

from fcanet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.