Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于论文中Salience-guidance Supervision的问题 #20

Open
autoencoder-zz opened this issue Jul 5, 2024 · 1 comment
Open

关于论文中Salience-guidance Supervision的问题 #20

autoencoder-zz opened this issue Jul 5, 2024 · 1 comment
Labels
question Further information is requested

Comments

@autoencoder-zz
Copy link

Question

首先,感谢楼主分享项目完整的代码!
看了论文和代码后,关于Salience Supervision有两个问题:
1.Salience-guidance Supervision的提出和原理很好理解,但是我没明白与后面提出方法的联系在哪里,比如Heirachical query filtering中未提到根据Salience-guidance Supervision的得分判断是否过滤
2.其次,在代码中我没找到在哪里计算Salience confidence,按照论文结构框图的意思,应该是在level filtering之后编码器的预处理中,但我似乎没有找到,能否告知我一下在哪个文件的哪块实现的,谢谢!
再次感谢你们的工作!

补充信息

No response

@autoencoder-zz autoencoder-zz added the question Further information is requested label Jul 5, 2024
@xiuqhou
Copy link
Owner

xiuqhou commented Jul 6, 2024

感谢提问,很好的两个问题。

  • 第1个问题在论文中有介绍,限于版面可能没写太清楚。我们是使用Salience supervision得分作为依据来过滤query。具体来说,我们用3.1节的salience supervision去监督一个MLP网络的训练(公式3),这个网络会为每个query预测一个显著性得分,然后我们为每个特征图level和每个编码器layer中的query得分进行排序,过滤出得分最高的一些query参与编码,过滤的比例就是3.2节的v和w,剩余的query保持不变(公式4)。
  • 论文框图中的salience supervision是用于监督MLP网络的训练,而不是指编码器预处理,因此salience confidence的实现是在SalienceCriterion类中,在salience_detr.py文件中。MLP预测显著性得分和后面的query过滤是在salience_transformer.py的MaskPredictor和SalienceTransformer、SalienceTransformerEncoder类中。

其他不明白的地方可以参考B站这位UP主对我们论文和代码的讲解,也欢迎继续提问~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants