deepsound-project / samplernn-pytorch

PyTorch implementation of SampleRNN: An Unconditional End-to-End Neural Audio Generation Model
MIT License
288 stars 75 forks source link

Getting runtime error for sizes of tensors not matching #36

Closed masheendream closed 4 years ago

masheendream commented 4 years ago

RuntimeError: invalid argument 0: Sizes of tensors must match except in dimension 0. Got 705664 and 58368 in dimension 1 at /pytorch/torch/lib/TH/generic/THTensorMath.c:2897

My batch size is 64 instead of the initial 128. It would not run with 128, was getting a divide by 0 error for 128 batch size. I do not know if this could be a factor, but thought it would be worth mentioning.

Has anyone encountered this problem, what fixes are there?

masheendream commented 4 years ago

I used a DAW to split audio into 8 second chunks, something during that process caused the problem. I referenced @MichaelHanzai addition on issue #34 , and saw how to get the .sh script to split audio to work on google colab.