DLHacks / mocogan

A pytorch implemention of MoCoGAN
102 stars 21 forks source link

[error running train.py file]the shapes are different #2

Open harshraj32 opened 3 years ago

harshraj32 commented 3 years ago

Traceback (most recent call last): File "train.py", line 232, in err_Dv_real, Dv_real_mean = bp_v(real_videos, 0.9) File "train.py", line 178, in bp_v outputs = dis_v(inputs) File "C:\Users\Harsh\AppData\Local\Programs\Python\Python37\lib\site-packages\torch\nn\modules\module.py", line 889, in _call_impl result = self.forward(*input, kwargs) File "C:\Users\Harsh\Documents\finalproject\mocogan-master\models.py", line 76, in forward output = self.main(input) File "C:\Users\Harsh\AppData\Local\Programs\Python\Python37\lib\site-packages\torch\nn\modules\module.py", line 889, in _call_impl result = self.forward(*input, *kwargs) File "C:\Users\Harsh\AppData\Local\Programs\Python\Python37\lib\site-packages\torch\nn\modules\container.py", line 119, in forward input = module(input) File "C:\Users\Harsh\AppData\Local\Programs\Python\Python37\lib\site-packages\torch\nn\modules\module.py", line 889, in _call_impl result = self.forward(input, kwargs) File "C:\Users\Harsh\AppData\Local\Programs\Python\Python37\lib\site-packages\torch\nn\modules\linear.py", line 94, in forward return F.linear(input, self.weight, self.bias) File "C:\Users\Harsh\AppData\Local\Programs\Python\Python37\lib\site-packages\torch\nn\functional.py", line 1753, in linear return torch._C._nn.linear(input, weight, bias) RuntimeError: mat1 and mat2 shapes cannot be multiplied (16x12288 and 18432x1)