torch-stft icon indicating copy to clipboard operation
torch-stft copied to clipboard

The example code on my machine yields ValueError.

Open guanyuelee opened this issue 3 years ago • 0 comments

I use the exact example code as you provided in the README, but I caught error like this:

Traceback (most recent call last):
  File "my_test.py", line 29, in <module>
    print(np.mean((output - audio) ** 2)) # on order of 1e-16
ValueError: operands could not be broadcast together with shapes (1,1,220416) (1,220500)

I know it's okay to check the shape before further processing, but I just want to know how to resolve that.

guanyuelee avatar Nov 10 '21 08:11 guanyuelee