bytedance / GiantMIDI-Piano

1.71k stars 177 forks source link

Error when processing stereo audio #4

Closed rsp4jack closed 3 years ago

rsp4jack commented 3 years ago
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-11-6634fd8f8eb4> in <module>
----> 1 dict = tran.transcribe(audio, "Ascended Vibrations.mid")

A:\***\piano_transcription_inference\inference.py in transcribe(self, audio, midi_path)
     80             * self.segment_samples - audio_len
     81
---> 82         audio = np.concatenate((audio, np.zeros((1, pad_len))), axis=1)
     83
     84         # Enframe to segments

<__array_function__ internals> in concatenate(*args, **kwargs)

ValueError: all the input arrays must have same number of dimensions, but the array at index 0 has 3 dimension(s) and the array at index 1 has 2 dimension(s)