pieterwolfert / co-speech-humanoids

Co-Speech Gesture Generation for Humanoid Robots
13 stars 3 forks source link

Parameters mismatch in speech2gesture() function in inference.py #8

Open ghazanPK opened 5 years ago

ghazanPK commented 5 years ago

There is a parameter mismatch error on this line: https://github.com/pieterwolfert/co-speech-humanoids/blob/7266c8c865ba02bf953e7d205d92c51b5d354418/inference.py#L36

The error output is :

Traceback (most recent call last): File "inference.py", line 141, in main() File "inference.py", line 135, in main to_pose = speech2gesture(encoder, decoder, input_string) File "inference.py", line 36, in speech2gesture encoder_outputs, encoder_hidden = encoder(chunk_input.transpose(0,1), None) File "C:\anaconda3\envs\pytorch\lib\site-packages\torch\nn\modules\module.py", line 541, in call result = self.forward(*input, **kwargs) File "C:\Users\Ghazanfar Ali\Documents\GitHub\co-speech-humanoids\model.py", line 26, in forward packed = torch.nn.utils.rnn.pack_padded_sequence(embedded, input_lengths) File "C:\anaconda3\envs\pytorch\lib\site-packages\torch\nn\utils\rnn.py", line 272, in pack_padded_sequence lengths = torch.as_tensor(lengths, dtype=torch.int64) TypeError: an integer is required (got type NoneType)

I am not able to figure the missing parameter here