We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
感谢您的工作和对开源社区的贡献。
我想在自己的数据使用RT-DETR,数据目标在原尺度为正方形目标,我想利用这个信息,在数据处理时保持原图比例,我也参考了这个issue13,但是里面没有 Attention Mask 相关讨论。
我想咨询的问题是: 在图像保持原图比例缩放时,会引入填充像素,填充部分的Attention Mask在DETR中会被置为1,并在encode的时候忽略
https://github.com/facebookresearch/detr/blob/29901c51d7fe8712168b8d0d64351170bc0f83e0/models/backbone.py#L72
但是在 RT-DETR 中采用直接resize的方法,没有填充,keep_ratio: False,Attention Mask作用在了CDN中
keep_ratio: False
RT-DETR/rtdetr_pytorch/src/zoo/rtdetr/hybrid_encoder.py
Line 299 in 5b628ea
我需要在原图比例上使用RT-DETR,那么PAN结构的特征融合时填充像素特征是否会影响非填充目标特征的表达?是否需要对遮挡像素的特征做mask?
The text was updated successfully, but these errors were encountered:
lyuwenyu
No branches or pull requests
感谢您的工作和对开源社区的贡献。
我想在自己的数据使用RT-DETR,数据目标在原尺度为正方形目标,我想利用这个信息,在数据处理时保持原图比例,我也参考了这个issue13,但是里面没有 Attention Mask 相关讨论。
我想咨询的问题是:
在图像保持原图比例缩放时,会引入填充像素,填充部分的Attention Mask在DETR中会被置为1,并在encode的时候忽略
https://github.com/facebookresearch/detr/blob/29901c51d7fe8712168b8d0d64351170bc0f83e0/models/backbone.py#L72
但是在 RT-DETR 中采用直接resize的方法,没有填充,
keep_ratio: False
,Attention Mask作用在了CDN中RT-DETR/rtdetr_pytorch/src/zoo/rtdetr/hybrid_encoder.py
Line 299 in 5b628ea
我需要在原图比例上使用RT-DETR,那么PAN结构的特征融合时填充像素特征是否会影响非填充目标特征的表达?是否需要对遮挡像素的特征做mask?
The text was updated successfully, but these errors were encountered: