perone / euclidesdb

A multi-model machine learning feature embedding database
http://euclidesdb.readthedocs.io
Other
633 stars 31 forks source link

Failure of installation on linux #27

Open wendilinplay opened 4 years ago

wendilinplay commented 4 years ago

Hi, thanks for creating this tool. I got an error while installation. It was on a Ubuntu GPU EC2 instance. Even though this looks like a Pytorch error, any idea how to debug/fix it?

./euclidesdb -c config.conf
Configuration config.conf loaded.
[EuclidesDB] 2020-05-02 01:21:18,816 [INFO]: EuclidesDB v.0.2.0 initialized.
terminate called after throwing an instance of 'c10::Error'
  what():  [enforce fail at inline_container.cc:166] . file not found: resnet101/model.json
frame #0: c10::ThrowEnforceNotMet(char const*, int, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, void const*) + 0x76 (0x7f6529e92bb6 in lib/libc10.so)
frame #1: torch::jit::PyTorchStreamReader::getFileID(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) + 0x4ac (0x7f652b5fab0c in lib/libcaffe2.so)
frame #2: torch::jit::PyTorchStreamReader::getRecord(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) + 0x33 (0x7f652b5fad13 in lib/libcaffe2.so)
frame #3: <unknown function> + 0x60a442 (0x7f652f0bd442 in lib/libtorch.so.1)
frame #4: torch::jit::load(std::istream&, c10::optional<c10::Device>) + 0x392 (0x7f652f0bf892 in lib/libtorch.so.1)
frame #5: torch::jit::load(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, c10::optional<c10::Device>) + 0x70 (0x7f652f0bfa50 in lib/libtorch.so.1)
frame #6: ./euclidesdb() [0x485487]
frame #7: ./euclidesdb() [0x4869ce]
frame #8: ./euclidesdb() [0x411739]
frame #9: __libc_start_main + 0xe7 (0x7f65294f3b97 in /lib/x86_64-linux-gnu/libc.so.6)
frame #10: ./euclidesdb() [0x4141d9]