JDAI-CV / dabnn

dabnn is an accelerated binary neural networks inference framework for mobile platform
Other
769 stars 102 forks source link

onn2bnn:terminate called after throwing an instance of 'std::out_of_range' what(): _Map_base::at Aborted (core dumped) #79

Open wayy13 opened 3 years ago

wayy13 commented 3 years ago

terminate called after throwing an instance of 'std::out_of_range' what(): _Map_base::at Aborted (core dumped)

xvyaward commented 2 years ago

hi, did you solve your problem? I am facing the same issue.

hebangwen commented 2 years ago

Hi, sorry to bother you, but I'd like to ask if you have solved this problem. I'm also facing the same problem but don't know where to start. It would be very appreciated if you can give me some suggestions.

hebangwen commented 2 years ago

Hi, all. I've checked the pretrained models from README.md and found three attributes in the model properties: format-ONNXv3, producer-pytorch0.3, and imports-ai.onnxv6. Thus, the easiest way to use DABNN without this error is to downgrade your PyTorch version to 0.3. Or else, you need to fix the version incompatible bug between DABNN and ONNX.

travisdriver commented 2 years ago

@BangwenHe This fixed it for me, thank you! Specifically, I used pytorch 0.4.1 and python 3.7.