libtorch-yolov3
libtorch-yolov3 copied to clipboard
Running your code gives the following error
error: ‘class at::DeprecatedTypeProperties’ has no member named ‘tensorFromBlob’ at::Tensor weights = torch::CPU(torch::kFloat32).tensorFromBlob(weights_src, {length/4});
Can you please guide a little how to modify it according to the newer version
I met the same problem. Check this https://github.com/pytorch/pytorch/issues/15426. You will also need to change "bn_imp->running_variance" to "bn_imp->running_var" in darkent.cpp
wget https://download.pytorch.org/libtorch/cpu/libtorch-shared-with-deps-1.0.0.zip
You can use this libtorch version as well.