Chasel-Tsui / mmrotate-dcfl

Official implementation of the CVPR23 paper: Dynamic Coarse-to-Fine Learning for Oriented Tiny Object Detection
Apache License 2.0
105 stars 4 forks source link

about RuntimeError: shape mismatch: value tensor of shape [15008] cannot be broadcast to indexing result of shape [12968] #21

Open bainisuoci opened 11 months ago

bainisuoci commented 11 months ago

When running the source code, the dcfl_head module has a label allocation size mismatch problem. How to solve it?

qiynxx commented 10 months ago

我遇到了同样的问题,请问你解决了吗?

bainisuoci commented 10 months ago

我尝试了很久,没有解决,最近放弃了,如果你解决了可以告知我下

2685268351 @.***

 

------------------ 原始邮件 ------------------ 发件人: "Chasel-Tsui/mmrotate-dcfl" @.>; 发送时间: 2024年1月20日(星期六) 凌晨1:31 @.>; @.**@.>; 主题: Re: [Chasel-Tsui/mmrotate-dcfl] about RuntimeError: shape mismatch: value tensor of shape [15008] cannot be broadcast to indexing result of shape [12968] (Issue #21)

我遇到了同样的问题,请问你解决了吗?

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

syxhero commented 3 months ago

from mmcv.ops import box_iou_rotated,DeformConv2d,ModulatedDeformConv2d,ModulatedDeformConv2dG,你们有这个问题吗,ModulatedDeformConv2dG我在mmcv库中找不到相关内容

NNNNerd commented 2 weeks ago

Does it happen in the "get_targets" function? Try setting unmap_outputs=False.