VideoAnomalyDetection icon indicating copy to clipboard operation
VideoAnomalyDetection copied to clipboard

A strange bug encountered during training was the first propagation of the previous item in Variance_Attention.

Open Wei-JL opened this issue 2 years ago • 2 comments

TypeError: conv2d() received an invalid combination of arguments - got (Tensor, Parameter, NoneType, tuple, tuple, tuple, int), but expected one of:
 * (Tensor input, Tensor weight, Tensor bias, tuple of ints stride, tuple of ints padding, tuple of ints dilation, int groups)
      didn't match because some of the arguments have invalid types: (Tensor, !Parameter!, !NoneType!, !tuple!, !tuple!, !tuple!, int)
 * (Tensor input, Tensor weight, Tensor bias, tuple of ints stride, str padding, tuple of ints dilation, int groups)
      didn't match because some of the arguments have invalid types: (Tensor, !Parameter!, !NoneType!, !tuple!, !tuple!, !tuple!, int)

Wei-JL avatar Dec 01 '22 06:12 Wei-JL

I also meet this bug, did you solve it? Thanks!

Damonjzh avatar Apr 11 '23 16:04 Damonjzh

You need to check if any arguments in conv2 are set to False, when they should be 0

cccly056 avatar Jul 18 '24 10:07 cccly056