【Issues Section】/【问题文档片段】
Audio data analysis:
test_data, sr = mindaudio.read(data_path)
【Existing Issues】/【存在的问题】
data_path传入[tests]文件夹下的音频文件(https://github.com/mindspore-lab/mindaudio/tree/main/tests),报错。
日志如下:
Traceback (most recent call last):
File "train.py", line 13, in
plt.pcolormesh(x,f,magnitude, shading='gouraud', vmin=0, vmax=np.percentile(magnitude, 98))
File "/root/miniconda3/envs/Python375/lib/python3.7/site-packages/matplotlib/pyplot.py", line 2733, in pcolormesh
({"data": data} if data is not None else {}), kwargs)
File "/root/miniconda3/envs/Python375/lib/python3.7/site-packages/matplotlib/init.py", line 1412, in inner
return func(ax, *map(sanitize_sequence, args), **kwargs)
File "/root/miniconda3/envs/Python375/lib/python3.7/site-packages/matplotlib/axes/_axes.py", line 6059, in pcolormesh
shading=shading, kwargs=kwargs)
File "/root/miniconda3/envs/Python375/lib/python3.7/site-packages/matplotlib/axes/_axes.py", line 5575, in _pcolorargs
C.shape, Nx, Ny, funcname))
TypeError: Dimensions of C (257, 484) are incompatible with X (750) and/or Y (257); see help(pcolormesh)