ChenhongyiYang / QueryDet-PyTorch

[CVPR 2022 Oral] QueryDet: Cascaded Sparse Query for Accelerating High-Resolution Small Object Detection
MIT License
423 stars 46 forks source link

Code issues #50

Closed wx24598 closed 1 year ago

wx24598 commented 2 years ago

Hello author, your job is very good. Can you answer the meaning of the following code for me?

    for i in range(-1*self.context, self.context+1):
        for j in range(-1*self.context, self.context+1):
            sparse_ys.append(ys+i)
            sparse_xs.append(xs+j)

    sparse_ys = torch.cat(sparse_ys, dim=0)
    sparse_xs = torch.cat(sparse_xs, dim=0)

    good_idx = (sparse_ys >= 0) & (sparse_ys < fh) & (sparse_xs >= 0)  & (sparse_xs < fw)
ChenhongyiYang commented 1 year ago

Hi, the code is used to add context information around small objects, which is important to the performance. Thank you!

wx24598 commented 1 year ago

非常感谢

------------------ 原始邮件 ------------------ 发件人: "ChenhongyiYang/QueryDet-PyTorch" @.>; 发送时间: 2023年2月17日(星期五) 凌晨2:17 @.>; @.**@.>; 主题: Re: [ChenhongyiYang/QueryDet-PyTorch] Code issues (Issue #50)

Hi, the code is used to add context information around small objects, which is important to the performance. Thank you!

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>