hustvl / MapTR

[ICLR'23 Spotlight & IJCV'24] MapTR: Structured Modeling and Learning for Online Vectorized HD Map Construction
MIT License
1.15k stars 175 forks source link

export onnx error ( We don't have an op for aten::mul but it isn't a special case ) #136

Open zhaoxiaolong2020 opened 1 year ago

zhaoxiaolong2020 commented 1 year ago

when i export maptr to onnx ,report error as below : RuntimeError: 0INTERNAL ASSERT FAILED at "../torch/csrc/jit/ir/alias_analysis.cpp":584, please report a bug to PyTorch. We don't have an op for aten::mul but it isn't a special case. Argument types: Tensor, bool,

please help find which line cause this error , maybe op not support , and how to replace op to solve , thanks alot

LordonCN commented 11 months ago

Have you solved this problem now? You can try to export maptr_tiny_r50_24e_bevformer.py model, which is nearly same to bevformer

xll426 commented 10 months ago

I met the same problem too

xll426 commented 10 months ago

Which operator is not supported? I found that there is deformable in the config of your model.

xll426 commented 10 months ago

I used maptr_nano_r18_110e.py to export onnx