Closed chitayata closed 1 year ago
Hi,
yes, this fails because the model was trained with stereo inputs. Not sure why this happens only on colab - maybe the GUI version is older that the one used on colab.
I'll think about how to fix this automatically - but for now you'll have to convert your files to stereo. You can do this with ffmpeg ( [https://trac.ffmpeg.org/wiki/AudioChannelManipulation#monostereo]()) - this will simplicate duplicate the mono signal on the left and the right stereo channels: ffmpeg -i input.wav -ac 2 output.wav
.
Great, thank you Jan. The opposite was true, I trained with mono but was trying to predict on the stereo, but I was able to convert the files and everything is working now! Versions of das were the same in colab and GUI, so I still don't know it only failed with Colab.
Dear Jan,
I am training in Colab using the below code
Everything seems to work fine, but then when I try to predict I get the below errors and the function fails. This only happens with colab-trained models, it does not happen with models I have trained in the GUI. Why is this?
Also, the WARNING -"input with incompatible shape (32, 8192, 2)" - always pops up when I am predicting on any model. What is this and is it a problem? Could it be because I trained with mono channel audio but prediction on stereo?