Skip to content
New issue

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

KeyError: 'RotatedDeformableDETR is not in the models registry' #27

Open
770880hgj opened this issue Dec 13, 2023 · 7 comments
Open

KeyError: 'RotatedDeformableDETR is not in the models registry' #27

770880hgj opened this issue Dec 13, 2023 · 7 comments

Comments

@770880hgj
Copy link

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

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

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

@Ixiaohuihuihui
Copy link
Owner

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

@yechao-prog
Copy link

@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这三个点,我看着这个英文有点儿晕晕的

@Ixiaohuihuihui
Copy link
Owner

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

@None5411
Copy link

你执行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
要复制过去再重新声明的有四五个,弄好了就不会报这个错了,但是我碰到了新的问题

@July-1024
Copy link

你执行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这个在哪里声明?

@None5411
Copy link

你执行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

@Raymondkeepsgoing
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants