Skip to content

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

@harshraj32

Description

@harshraj32

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions