-
will
@金天 模型文件地址:https://gitlab.com/StrangeAI/light_human_pose_libtorch/-/blob/master/human_pose_light_model.pt
报错信息就是catch到的那个 C10::Error
-
will
RT 我在一个项目中light_human_pose_libtorch-master 复制模型到我自己的项目中,发现加载错误
加载代码如下torch::jit::script::Module module; try{ module = torch::jit::load("human_pose_light_model.pt"); }catch (const c10::Error &e){ std::cerr << "error loading the model\n"; return -1; }
请问这跟libtorch版本有关吗?