libtorch-yolov3 icon indicating copy to clipboard operation
libtorch-yolov3 copied to clipboard

Running your code gives the following error

Open ZainAli2695 opened this issue 5 years ago • 2 comments

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

ZainAli2695 avatar May 21 '19 11:05 ZainAli2695

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

zhengli233 avatar May 23 '19 08:05 zhengli233

wget https://download.pytorch.org/libtorch/cpu/libtorch-shared-with-deps-1.0.0.zip

You can use this libtorch version as well.

shayan09 avatar Jun 26 '19 06:06 shayan09