通過c++加載python訓練好的模型,libtorch
torch::jit::script::Module model_;model_ = torch::jit::load(model);
terminate called after throwing an instance of 'c10::Error'
what(): PytorchStreamReader failed locating file constants.pkl: file not found
Exception raised from valid at ../caffe2/serialize/inline_container.cc:158 (most recent call first):
frame #0: c10::Error::Error(c10::SourceLocation, std::__cxx11::basic_string
frame #1: c10::detail::torchCheckFail(char const*, char const*, unsigned int, std::__cxx11::basic_string
frame #2: caffe2::serialize::PyTorchStreamReader::valid(char const*, char const*) + 0x3ca (0x7f5bdacea09a in ../lib/libtorch/libtorch_cpu.so)
正確加載
Similar to human eyes and brai
文章目錄Widerface數據集轉VOC格式VOC 轉YOL