baowenbo / DAIN

Depth-Aware Video Frame Interpolation (CVPR 2019)
https://sites.google.com/view/wenbobao/dain
MIT License
8.19k stars 840 forks source link

TypeError: rsub() received an invalid combination of arguments got (Tensor,list), but expected one of: * (Tensor input, Tensor other, Number alpha) * (Tensor input, Number other, Number alpha) #159

Open rriicckkee opened 8 months ago

rriicckkee commented 8 months ago

traceback (most recent call last): File "/home/dell/anaconda3/envs/ysa/lib/python3.6/threading.py", line 916, in _bootstrap_inner self.run() File "/home/dell/anaconda3/envs/ysa/lib/python3.6/threading.py", line 864, in runself._target(*self._args, *self._kwargs)File "train.py", line 154, in train diffs, offsets,filters, occlusions = model(torch.stack((X0,y,X1),dim = 0))File "/home/dell/anaconda3/envs/ysa/lib/python3.6/site-packages/torch/nn/modules/module.py", line 547,in _call result = self.forward(input, **kwargs] File "/home/dell/ysa/DAIN-master/networks/DAIN_slowmotion.py", ine 189, in forward losses +=[cur_output - cur_input_1] File "/home/dell/anaconda3/envs/ysa/lib/python3.6/site-packages/torch/tensor.py", line 325, in _rsub. return _C._VariableFunctions .rsub(self, other) IypeError: rsub() received an invalid combination of arguments - got (Tensor, list), but expected one of:

rriicckkee commented 8 months ago

How to solve the above problems that occur during training?