Closed wolfworld6 closed 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
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!
No problem, good to hear that you fixed it!
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)