当前位置:网站首页>Non local mean filtering / attention mechanism
Non local mean filtering / attention mechanism
2022-07-23 20:04:00 【xx_ xjm】
One : Nonlocal mean
Mean filtering : In target pixels x Centered , Its radius is r Pixels in the range of weighting Sum and average as pixels x Filtered value
Nonlocal mean filtering : Mean filtering is for target pixels x Weighted sum of pixels in the range , But this weight is artificially set , Generally, it is to take 1, That is to say, the pixels in this range are relative to the center x The impact is the same , This is obviously not right . Then each pixel point to the center point x How to set the weight of ? Nonlocal mean filtering is actually to calculate the pixel points at different positions to the center point x The impact weight of , Then add and average . How to calculate this weight ?
Refer to the following first : Nonlocal mean filtering ( One )_ Shallow Yumo's blog -CSDN Blog _ Nonlocal mean filtering
The article has made it very clear , But I don't think what I said is very good , Here he sets the size of the picture to 7*7, And the search box is also 7*7, It's not easy to understand , Let me add here .
We can set the size of the picture to 256*256, So we set the search box to 7*7, The domain block is set to 3*3; That is to say, we need to calculate the search box 7*7 Inside 49 Pixels to the center of the search box x The impact weight of , This weight is calculated by comparing the field speed of each point in the search box with that of the center point
Two : Attention mechanism
There are two kinds of attention mechanisms : One is the soft attention mechanism , One is the hard attention mechanism , A simple understanding can think that the attention learned by soft attention is continuous [0,1] Probability value between , The attention learned by hard attention mechanism can only be 0, perhaps 1. Generally, we use soft attention , Hard attention usually needs reinforcement learning .
Reference from :Attention( attention ) Mechanism - Simple books (jianshu.io)
Soft attention mechanism : For example, calculate the attention relationship between channels , The representative is SENet; Or attention between regions , Channel attention , Spatial attention, etc .
Hard attention mechanism : Calculate point-to-point attention , The representative is Non-local Neural Networks This paper , yes self-attention A typical application of , Its idea is derived from the nonlocal mean filtering we mentioned above .
One more point : Attention can be understood as a way to calculate the interaction factors between elements , and non-local It's a way of calculation : For example, in the paper “Camouflflaged Object Segmentation with Distraction Mining ” As mentioned in :
边栏推荐
- 2022 Shandong old age Expo, Shandong elderly care exhibition, China International elderly care service industry exhibition was held in September
- 从200W超级闪充看iQOO 10 Pro的 “共情”能量
- [unity project practice] level unlocking
- 2022/7/22 训练日志
- Decryption: PTP clock synchronization in intelligent substation (Beidou clock server)
- 2022/7/21 training summary
- 2022第四届中国国际养老服务业展览会,9月26日在济南举办
- [英雄星球七月集训LeetCode解题日报] 第23日 字典树
- MySQL data recovery - using the data directory
- Introduction to web security SSH testing and defense
猜你喜欢

New product listing | A-share floor derivatives market point

Mekol Studio - Little Bear Development Notes 2

Powercli moves virtual machines from host01 host to host02 host

3D point cloud course (VII) -- feature point description

Leetcode 228. 汇总区间(可以,已解决)

能量原理与变分法笔记18:虚力原理

AtCoder——Subtree K-th Max

如何给电脑系统重置系统?方法其实很简单

百度地图数据可视化

Energy principle and variational method note 18: virtual force principle
随机推荐
13. Roman to Integer罗马数字转整数
Safely stop NodeOS
R language data The table package performs data grouping aggregation statistical transformations and calculates the grouping minimum value (min) of dataframe data
PC performance monitoring tool is an indispensable helper for software testers
osgearth使用sundog公司的triton海洋和silverlining云彩效果
3D point cloud course (VI) -- 3D target detection
[PM2] PM2 common commands
【Unity项目实践】委托
【无标题】
[激光器原理与应用-8]: 激光器电路的电磁兼容性EMC设计
Energy principle and variational method note 17: generalized variational principle (identification factor method)
Educational codeforces round 132 (rated for Div. 2) [competition record]
深入浅出边缘云 | 1. 概述
[interview: concurrent Article 22 multithreading: reentrantlock]
2022 Shandong elderly care exhibition, China International elderly care service industry exhibition, Jinan elderly care industry exhibition
Huawei cloud stack [interview]
Uncover the working principle of solid state disk
What if redis breaks down?
Introduction to web security SSH testing and defense
百度地图数据可视化