aim-uofa / AdelaiDet

AdelaiDet is an open source toolbox for multiple instance-level detection and recognition tasks.
https://git.io/AdelaiDet
Other
3.36k stars 643 forks source link

AssertionError:Shape should be tensor during tracing! #489

Open Lili-xiong opened 2 years ago

Lili-xiong commented 2 years ago

在训练ABCNet时,按照如下命令运行,会报错误: AssertionError:Shape should be tensor during tracing!

python demo/demo.py \ --config-file configs/BAText/CTW1500/attn_R_50.yaml \ --input datasets/CTW1500/ctwtest_text_image/ \ --opts MODEL.WEIGHTS ctw1500_attn_R_50.pth

使用的数据集是官方给出的CTW1500。 请问一下,这个问题如何解决?谢谢

Yuliang-Liu commented 2 years ago

@Lili-xiong Would you provide what you have modified, otherwise we cannot reproduce the error based on the current information.

Lili-xiong commented 2 years ago

谢谢!我确实很早之前修改了一些东西,我已经还原了代码,错误已经没有了。感谢解答