yasenh / libtorch-yolov5

A LibTorch inference implementation of the yolov5
MIT License
372 stars 114 forks source link

isTuple() INTERNAL ASSERT FAILED #21

Closed wolfworld6 closed 3 years ago

wolfworld6 commented 3 years ago

when i run the code,i got this error ,how could i solve it?

terminate called after throwing an instance of 'c10::Error' what(): isTuple() INTERNAL ASSERT FAILED at "/dxd/libtorch-yolov5/libtorch/include/ATen/core/ivalue_inl.h":842, please report a bug to PyTorch. Expected Tuple but got GenericList Exception raised from toTuple at /dxd/libtorch-yolov5/libtorch/include/ATen/core/ivalue_inl.h:842 (most recent call first): frame #0: c10::Error::Error(c10::SourceLocation, std::cxx11::basic_string<char, std::char_traits, std::allocator >) + 0x69 (0x7f569de58eb9 in /dxd/libtorch-yolov5/libtorch/lib/libc10.so) frame #1: c10::IValue::toTuple() const & + 0xe5 (0x4206cd in ./libtorch-yolov5) frame #2: ./libtorch-yolov5() [0x41916a] frame #3: ./libtorch-yolov5() [0x4316f6] frame #4: libc_start_main + 0xf0 (0x7f5654d44840 in /lib/x86_64-linux-gnu/libc.so.6) frame #5: ./libtorch-yolov5() [0x4176b9]

Aborted (core dumped)

yasenh commented 3 years ago

https://github.com/yasenh/libtorch-yolov5#faq @wolfworld6 if you use cpu version, please make sure you don't pass --gpu flag

wolfworld6 commented 3 years ago

https://github.com/yasenh/libtorch-yolov5#faq @wolfworld6 if you use cpu version, please make sure you don't pass --gpu flag

that is my fault,i do that twice,thx v much!

yasenh commented 3 years ago

No problem, good to hear that you fixed it!