-
Notifications
You must be signed in to change notification settings - Fork 12
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
关于Relation编码在Def、DAB和DN DETR这三个detr变体的实现代码请求 #28
Comments
好的,感谢对本仓库的关注,这两天我会把这些模型代码开源出来,如果权重还能找到的话,我也会上传 |
Hi @whuxfx 这几个模型的代码已更新,Deformable的权重时间太久远已经找不到了,所以只上传了DAB和DN的权重。 |
❯ CUDA_VISIBLE_DEVICES=2 python tools/benchmark_model.py --model-config configs/deformable_detr_mp/def_detr_pp_resnet_800_1333.py Using /home//.cache/torch_extensions/py38_cu121 as PyTorch extensions root...
|
作者你好,我使用了代码自带的工具进行测试,为什么def-detr的参数量和浮点计算数相差这么大。带位置编码和不带位置编码| module | #parameters or shape | #flops | |
应该是def_detr_pp_resnet50_800_1333配置的部分参数和和原始实现不一致,比如这里dim_feedforward=2048,官方用的是1024。抽空我把配置文件和官方对齐一下 |
还有一个原因,FLOPs和输入图片的尺寸有关,只有在相同尺寸的输入图片下才有对比性。我这里默认的FLOPs计算时输入的图片尺寸是800*1333,您可以看一下官方输入的尺寸是多少。 我刚才测试了一下,如果把dim_feedforward改成1024,并且尺寸都设置成800*1333,那么本仓库中的测试结果和detrex中的deformable-detr结果是一致的。(下面分别是本仓库和detrex结果,detrex输入图片的尺寸被固定成了800*1333)
|
好的,我将dim_feedforward减小后得到和你类似的结果 |
Question
作者你好,关于论文中“5.4 Transferability of position relation”中Relation编码实现了对三种detr变体的性能提升,请问可以开源这三个detr变体的实现代码吗。谢谢!
补充信息
No response
The text was updated successfully, but these errors were encountered: