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

转换RT-DETR 为pth文件失败 #26

Open
iodncookie opened this issue Aug 22, 2023 · 0 comments
Open

转换RT-DETR 为pth文件失败 #26

iodncookie opened this issue Aug 22, 2023 · 0 comments

Comments

@iodncookie
Copy link

iodncookie commented Aug 22, 2023

大佬,参考readme_rtdetr.txt文件,下载转换权重wget https://bj.bcebos.com/v1/paddledet/models/rtdetr_r18vd_dec3_6x_coco.pdparams
运行
python tools/convert_weights.py -f exps/rtdetr/rtdetr_r18vd_6x_coco.py -c rtdetr_r18vd_dec3_6x_coco.pdparams -oc rtdetr_r18vd_dec3_6x_coco.pth -nc 80 --device gpu 报错。

======================== copy weights ======================== transpose param: name='transformer.decoder.layers.0.self_attn.in_proj_weight' transpose param: name='transformer.decoder.layers.0.self_attn.out_proj.weight' transpose param: name='transformer.decoder.layers.0.cross_attn.sampling_offsets.weight' transpose param: name='transformer.decoder.layers.0.cross_attn.attention_weights.weight' transpose param: name='transformer.decoder.layers.0.cross_attn.value_proj.weight' transpose param: name='transformer.decoder.layers.0.cross_attn.output_proj.weight' transpose param: name='transformer.decoder.layers.0.linear1.weight' transpose param: name='transformer.decoder.layers.0.linear2.weight' transpose param: name='transformer.decoder.layers.1.self_attn.in_proj_weight' transpose param: name='transformer.decoder.layers.1.self_attn.out_proj.weight' transpose param: name='transformer.decoder.layers.1.cross_attn.sampling_offsets.weight' transpose param: name='transformer.decoder.layers.1.cross_attn.attention_weights.weight' transpose param: name='transformer.decoder.layers.1.cross_attn.value_proj.weight' transpose param: name='transformer.decoder.layers.1.cross_attn.output_proj.weight' transpose param: name='transformer.decoder.layers.1.linear1.weight' transpose param: name='transformer.decoder.layers.1.linear2.weight' transpose param: name='transformer.decoder.layers.2.self_attn.in_proj_weight' transpose param: name='transformer.decoder.layers.2.self_attn.out_proj.weight' transpose param: name='transformer.decoder.layers.2.cross_attn.sampling_offsets.weight' transpose param: name='transformer.decoder.layers.2.cross_attn.attention_weights.weight' transpose param: name='transformer.decoder.layers.2.cross_attn.value_proj.weight' transpose param: name='transformer.decoder.layers.2.cross_attn.output_proj.weight' transpose param: name='transformer.decoder.layers.2.linear1.weight' transpose param: name='transformer.decoder.layers.2.linear2.weight' Traceback (most recent call last): File "tools/convert_weights.py", line 599, in <module> main(exp, args) File "tools/convert_weights.py", line 571, in main copy(name2, w, model_std) File "tools/convert_weights.py", line 65, in copy assert mul1 == mul2 AssertionError

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

1 participant