Closed furh20 closed 2 years ago
Hi, it's a good question. As its name suggests, self.context is used to provide context information for detection, which is critical for a detector's performance. An important aspect of self.context is that the context pixels are only used for computing sparse convolution and are not used as queries for the next stage. While we can also get more context by lowering the query score threshold, we would inevitably get more unnecessary queries, hence the efficiency would be harmed.
Hope my reply can answer your question.
Hi, it's a good question. As its name suggests, self.context is used to provide context information for detection, which is critical for a detector's performance. An important aspect of self.context is that the context pixels are only used for computing sparse convolution and are not used as queries for the next stage. While we can also get more context by lowering the query score threshold, we would inevitably get more unnecessary queries, hence the efficiency would be harmed.
Hope my reply can answer your question.
Thank you for your reply, it solved my problem. CSQ is a great work. I am trying to replicate your method with MMDetection and apply it to other detectors.
嗨,这是个好问题。顾名思义,self.context 用于为检测提供上下文信息,这对检测器的性能至关重要。self.context 的一个重要方面是上下文像素仅用于计算稀疏卷积,而不用作下一阶段的查询。虽然我们也可以通过降低查询分数阈值来获得更多的上下文,但我们不可避免地会得到更多不必要的查询,因此效率会受到损害。 希望我的回复能回答你的问题。
感谢您的回复,它解决了我的问题。CSQ是一部伟大的作品。我正在尝试使用 MMDetection 复制您的方法并将其应用于其他检测器。
您好!请问一下您采用MMdetection将作者提出的创新模块进行封装了吗?
Many thanks to the author for providing a good solution for small object detection, but I have a little question about
run_qinfer
in the source code. During inference, authors choose the locations whose predicted scores are larger than a threshold σ as queries. Then $q{l}^{0}$ will be mapped to its four nearest neighbors on $P{l−1}$ as key positions. The implementation of this part corresponds to the following operations in_make_sparse_tensor()
But I don't understand why the following operations are required when constructing
sparse indices
. Why not directly useys
andxs
to construct thesparse indices
, and what is the point ofself.context
?I noticed that the author set
cfg.MODEL.QUERY.CONTEXT = 2
inmodel/config.py
, then according to the above code, 25 points are expanded around each point asquery_key
.Could you do me a favour to explain the reason for using the
self.context
to constructsparse indices
.