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

enviroment list please

Open whyx007 opened this issue 4 years ago • 5 comments

Can anyone tell me which version of libtorch,opencv,visual stdio you use could works? I have tried many times in the environment of vs2019, libtorch1.4, opencv 4.2.there is a bug at Darknet.cpp #line142 x = torch::cat({map_1, map_2}, 1); I guess the version of vs or libtorch is not match,so could anybody who has run successfully tell me what the version is

whyx007 avatar Apr 02 '20 13:04 whyx007

I have compilation errors. One of them is : namespace "torch::nn" has no member "BatchNorm" . This method does not appear in the documentation either. I looked for it in all versions. ( 0.1.12 - 1.6.0 ) . Other compilation errors:

  • with_bias -BatchNormImpl -Conv2dOptions class does not contain stride_, padding_, groups_, with_bias_

Any suggestion?

lbdalmendray avatar Aug 07 '20 21:08 lbdalmendray

For 1.3:

  • error: ‘torch::ExpandingArray<2> torch::nn::ConvOptions<2>::stride_’ is private within this context torch::nn::Conv2dOptions conv_options(
  • conv_options.stride_ = stride;
  • conv_options.padding_ = padding;
  • conv_options.groups_ = groups;
  • conv_options.with_bias_ = with_bias;
  • conv_options.stride(stride);
  • conv_options.padding(padding);
  • conv_options.groups(groups);
  • conv_options.with_bias(with_bias);

torch::nn::BatchNormOptions bn_options(

  • bn_options.affine_ = true;
  • bn_options.stateful_ = true;
  • bn_options.affine(true);
  • bn_options.stateful(true);

teplofizik avatar Aug 24 '20 08:08 teplofizik

@lbdalmendray hi, have you solved your problem? I just met it too

xuweilin2014 avatar Nov 03 '20 03:11 xuweilin2014

torch::nn::BatchNorm -> torch::nn::BatchNorm2d ; conv_options.stride_ = stride -> conv_options.stride(stride) torch::nn::BatchNormImpl -> torch::nn::BatchNorm2dImpl and so on @xuweilin2014

Qiuzhongyuan avatar Dec 21 '20 10:12 Qiuzhongyuan

For 1.3:

  • error: ‘torch::ExpandingArray<2> torch::nn::ConvOptions<2>::stride_’ is private within this context torch::nn::Conv2dOptions conv_options(

  • conv_options.stride_ = stride;

  • conv_options.padding_ = padding;

  • conv_options.groups_ = groups;

  • conv_options.with_bias_ = with_bias;

  • conv_options.stride(stride);

  • conv_options.padding(padding);

  • conv_options.groups(groups);

  • conv_options.with_bias(with_bias);

torch::nn::BatchNormOptions bn_options(

  • bn_options.affine_ = true;

  • bn_options.stateful_ = true;

  • bn_options.affine(true);

  • bn_options.stateful(true);

AWESOME

Wangbenzhi avatar Dec 23 '20 01:12 Wangbenzhi