AO2-DETR icon indicating copy to clipboard operation
AO2-DETR copied to clipboard

KeyError: 'RotatedDeformableDETR is not in the models registry'

Open 770880hgj opened this issue 1 year ago • 7 comments

你好,我在运行你的代码时,出现了这个错误:KeyError: 'RotatedDeformableDETR is not in the models registry' 我看了你给其他人回答,问题还是没有解决。 我的代码目录如下: 图片 我的运行环境如下: 图片 图片

我的运行命令为: python tools/train.py configs/deformable_detr/deformable_detr_r50_16x2_50e_dota.py
我的运行结果如下: 图片

麻烦解答一下,我要怎样才可以顺利运行,谢谢。

770880hgj avatar Dec 13 '23 03:12 770880hgj

可以去mmroate下面搜对应的解决方案,应该是编译都没有成功。

Ixiaohuihuihui avatar Feb 20 '24 15:02 Ixiaohuihuihui

@Ixiaohuihuihui what a greatjob!!!! i have some question about the paper, 怎么简要理解 an oriented proposal generation (OPG) mechanism, an adaptive oriented proposal refinement (OPR) module, and a rotation-aware set matching loss这三个点,我看着这个英文有点儿晕晕的

yechao-prog avatar Feb 25 '24 13:02 yechao-prog

生成旋转候选区域和旋转候选区域细化

Ixiaohuihuihui avatar Mar 20 '24 07:03 Ixiaohuihuihui

你执行git clone https://github.com/open-mmlab/mmrotate.git cd mmrotate pip install -r requirements/build.txt pip install -v -e . # or "python setup.py develop" 实际上是把mmrotate当作了一个新的mmrotate软件包(注意不是AO2-DETR里面的) 但是mmrotate里面并没有作者创新的RotatedDeformableDETR,所以你需要到mmrotate中的__init__.py中去声明 微信截图_20240320222351 要复制过去再重新声明的有四五个,弄好了就不会报这个错了,但是我碰到了新的问题

None5411 avatar Mar 20 '24 14:03 None5411

你执行git clone https://github.com/open-mmlab/mmrotate.git cd mmrotate pip install -r requirements/build.txt pip install -v -e .# or “python setup.py develop” 实际上是把mmrotate当作了一个新的mmrotate软件包(注意不是AO2-DETR里面的) 但是mmrotate里面并没有作者创新的RotatedDeformableDETR,所以你需要到mmrotate中的__init__.py中去声明 微信截图_20240320222351 要复制过去再重新声明的有四五个,弄好了就不会报这个错了,但是我碰到了新的问题

你好,我复制过去后重新声明之后又出现了:KeyError: 'RotatedDeformableDETR: "RotatedDeformableDETRHead: 'Rotated_HungarianAssigner is not in the bbox_assigner registry'"'这种问题,但我并没有找到Rotated_HungarianAssigner这个在哪里声明?

July-1024 avatar Jul 24 '24 02:07 July-1024

你执行git clone https://github.com/open-mmlab/mmrotate.git cd mmrotate pip install -r requirements/build.txt pip install -v -e .# or “python setup.py develop” 实际上是把mmrotate当作了一个新的mmrotate软件包(注意不是AO2-DETR里面的) 但是mmrotate里面并没有作者创新的RotatedDeformableDETR,所以你需要到mmrotate中的__init__.py中去声明 微信截图_20240320222351 要复制过去再重新声明的有四五个,弄好了就不会报这个错了,但是我碰到了新的问题

你好,我复制过去后重新声明之后又出现了:KeyError: 'RotatedDeformableDETR: "RotatedDeformableDETRHead: 'Rotated_HungarianAssigner is not in the bbox_assigner registry'"'这种问题,但我并没有找到Rotated_HungarianAssigner这个在哪里声明?

时间太长,我也忘记具体怎么解决这个了 微信图片_20240724192000

None5411 avatar Jul 24 '24 11:07 None5411

大家有遇到执行test.py时卡住的情况吗

Raymondkeepsgoing avatar Aug 18 '24 01:08 Raymondkeepsgoing