Comments (2)
非常感谢关注我们的工作,
1) APNet 是可以基于任何形式的attention的, 我们在实验中给出了APNet-C (channel-wise attention)和APNet-S(spatial attention。图2里面描述的是基于spatial attention的APNet-S, 'splited = torch.split(x, channel//self.radix, dim=1)' 是APNet-C 对应的代码。 文章中有更详细的解释~
2) APNet 是对注意力网络的扩展, 当level=1 的时候, 它相当与正常的注意力网络, 对于APNet-C 来说,APNet-C (level=1)就是 SElayer. 对于 level>=2 的时候, 我们会对注意力做金字塔操作,split-attend-merge-stack ,其中attend 就是做原始的注意力操作, ‘atten = F.softmax(atten, dim=1).view(batch, -1, 1, 1)’ 是注意力代码的一部分, 也就是SElayer 的一部分
3)APNet 对于croase to fine 和fine to croase 是鲁棒的, 不过最后实验结果是基于code 中的fine to coarse得到的。我们在issue 4 中关于这个问题给了详细的讨论, 希望对你的问题有帮助。
from apnet.
感谢感谢,明白了~能不能分享一下APNet-S(spatial attention)对应的代码,如果方便的话,[email protected],🙏
from apnet.
Related Issues (11)
- There is only one SAMS layer when ap_level = 2? HOT 5
- APNet算法中cuhk03测试结果问题 HOT 4
- accuracy HOT 1
- The map of the datasets MSMT is different from that in the paper HOT 4
- Generate a test image that corresponds to that part of the code. HOT 6
- The code in APNet/modeling/baseline.py does not match the description in Figure 2 HOT 5
- SAM part of the code HOT 1
- 关于APlevel=3时报错 HOT 1
- the code of spatial attention HOT 1
- 测试时加载模型 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apnet.