Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cargo run yolo error #337

Closed
cymqqqq opened this issue Apr 6, 2021 · 1 comment
Closed

cargo run yolo error #337

cymqqqq opened this issue Apr 6, 2021 · 1 comment

Comments

@cymqqqq
Copy link

cymqqqq commented Apr 6, 2021

Error: Internal torch error: open file failed, file path: yolo-v3.ot
Exception raised from FileAdapter at ../caffe2/serialize/file_adapter.cc:11 (most recent call first):
frame #0: c10::Error::Error(c10::SourceLocation, std::__cxx11::basic_string<char, std::char_traits, std::allocator >) + 0x69 (0x7faf1dbfdb29 in /home/azureuser/libtorch/lib/libc10.so)
frame #1: c10::detail::torchCheckFail(char const*, char const*, unsigned int, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&) + 0xd2 (0x7faf1dbfaab2 in /home/azureuser/libtorch/lib/libc10.so)
frame #2: caffe2::serialize::FileAdapter::FileAdapter(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&) + 0x25f (0x7faf1ff0faff in /home/azureuser/libtorch/lib/libtorch_cpu.so)
frame #3: torch::jit::load(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, c10::optionalc10::Device, std::unordered_map<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::hash<std::__cxx11::basic_string<char, std::char_traits, std::allocator > >, std::equal_to<std::__cxx11::basic_string<char, std::char_traits, std::allocator > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits, std::allocator > const, std::__cxx11::basic_string<char, std::char_traits, std::allocator > > > >&) + 0x40 (0x7faf21503a00 in /home/azureuser/libtorch/lib/libtorch_cpu.so)
frame #4: torch::jit::load(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, c10::optionalc10::Device) + 0x6f (0x7faf21503b8f in /home/azureuser/libtorch/lib/libtorch_cpu.so)
frame #5: + 0xc6193 (0x55d3991a4193 in target/debug/yolo)
frame #6: + 0x4d1e9 (0x55d39912b1e9 in target/debug/yolo)
frame #7: + 0x243e3 (0x55d3991023e3 in target/debug/yolo)
frame #8: + 0x382c6 (0x55d3991162c6 in target/debug/yolo)
frame #9: + 0x399cb (0x55d3991179cb in target/debug/yolo)
frame #10: + 0x5524e (0x55d39913324e in target/debug/yolo)
frame #11: + 0x2e301 (0x55d39910c301 in target/debug/yolo)
frame #12: + 0x105cc7 (0x55d3991e3cc7 in target/debug/yolo)
frame #13: + 0x2e2d7 (0x55d39910c2d7 in target/debug/yolo)
frame #14: + 0x393da (0x55d3991173da in target/debug/yolo)
frame #15: __libc_start_main + 0xf3 (0x7faf1d80a0b3 in /lib/x86_64-linux-gnu/libc.so.6)
frame #16: + 0x1b8ee (0x55d3990f98ee in target/debug/yolo)

@LaurentMazare
Copy link
Owner

The example code has some details about the weights to be downloaded for this example to work, see yolo/main.rs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants