Closed velascoluis closed 4 years ago
Hi, after getting this error when executing the generate_videos.py script:
generate_videos.py
root@508aee39a995:/mocogan/src# python generate_videos.py ../logs/dances/generator_100000.pytorch ../output Traceback (most recent call last): File "generate_videos.py", line 61, in <module> v, _ = generator.sample_videos(1, int(args['--number_of_frames'])) File "/mocogan/src/models.py", line 268, in sample_videos z, z_category_labels = self.sample_z_video(num_samples, video_len) File "/mocogan/src/models.py", line 259, in sample_z_video z_motion = self.sample_z_m(num_samples, video_len) File "/mocogan/src/models.py", line 224, in sample_z_m h_t.append(self.recurrent(e_t, h_t[-1])) File "/usr/local/lib/python2.7/dist-packages/torch/nn/modules/module.py", line 224, in __call__ result = self.forward(*input, **kwargs) File "/usr/local/lib/python2.7/dist-packages/torch/nn/modules/rnn.py", line 682, in forward self.bias_ih, self.bias_hh, File "/usr/local/lib/python2.7/dist-packages/torch/nn/_functions/rnn.py", line 49, in GRUCell gi = F.linear(input, w_ih) File "/usr/local/lib/python2.7/dist-packages/torch/nn/functional.py", line 555, in linear output = input.matmul(weight.t()) File "/usr/local/lib/python2.7/dist-packages/torch/autograd/variable.py", line 560, in matmul return torch.matmul(self, other) File "/usr/local/lib/python2.7/dist-packages/torch/functional.py", line 173, in matmul return torch.mm(tensor1, tensor2) File "/usr/local/lib/python2.7/dist-packages/torch/autograd/variable.py", line 579, in mm return Addmm.apply(output, self, matrix, 0, 1, True) File "/usr/local/lib/python2.7/dist-packages/torch/autograd/_functions/blas.py", line 26, in forward matrix1, matrix2, out=output) TypeError: torch.addmm received an invalid combination of arguments - got (int, torch.cuda.FloatTensor, int, torch.cuda.FloatTensor, torch.FloatTensor, out=torch.cuda.FloatTensor), but expected one of: * (torch.cuda.FloatTensor source, torch.cuda.FloatTensor mat1, torch.cuda.FloatTensor mat2, *, torch.cuda.FloatTensor out) * (torch.cuda.FloatTensor source, torch.cuda.sparse.FloatTensor mat1, torch.cuda.FloatTensor mat2, *, torch.cuda.FloatTensor out) * (float beta, torch.cuda.FloatTensor source, torch.cuda.FloatTensor mat1, torch.cuda.FloatTensor mat2, *, torch.cuda.FloatTensor out) * (torch.cuda.FloatTensor source, float alpha, torch.cuda.FloatTensor mat1, torch.cuda.FloatTensor mat2, *, torch.cuda.FloatTensor out) * (float beta, torch.cuda.FloatTensor source, torch.cuda.sparse.FloatTensor mat1, torch.cuda.FloatTensor mat2, *, torch.cuda.FloatTensor out) * (torch.cuda.FloatTensor source, float alpha, torch.cuda.sparse.FloatTensor mat1, torch.cuda.FloatTensor mat2, *, torch.cuda.FloatTensor out) * (float beta, torch.cuda.FloatTensor source, float alpha, torch.cuda.FloatTensor mat1, torch.cuda.FloatTensor mat2, *, torch.cuda.FloatTensor out) didn't match because some of the arguments have invalid types: (int, torch.cuda.FloatTensor, int, torch.cuda.FloatTensor, torch.FloatTensor, out=torch.cuda.FloatTensor) * (float beta, torch.cuda.FloatTensor source, float alpha, torch.cuda.sparse.FloatTensor mat1, torch.cuda.FloatTensor mat2, *, torch.cuda.FloatTensor out) didn't match because some of the arguments have invalid types: (int, torch.cuda.FloatTensor, int, torch.cuda.FloatTensor, torch.FloatTensor, out=torch.cuda.FloatTensor)
Any ideas?
Duplicate of https://github.com/sergeytulyakov/mocogan/issues/3
Sorry, missed that! Great repo btw! Luis
Hi, after getting this error when executing the
generate_videos.py
script:Any ideas?