TUT-ARG / sed_vis

Visualization toolbox for Sound Event Detection
MIT License
114 stars 29 forks source link

ValueError: Input passed into argument "u'y1'"is not 1-dimensional. #2

Closed liuhuang31 closed 6 years ago

liuhuang31 commented 6 years ago

hi, use the demo file, it can show the picture.

But when i use the my own data, such as b044.ann as reference and b044_output.ann as estimated. It happens below.

Traceback (most recent call last): File "vis.py", line 26, in vis.show() File "/home/lhh/sed_vis/sed_vis/visualization.py", line 667, in show self.generate_GUI() File "/home/lhh/sed_vis/sed_vis/visualization.py", line 388, in generate_GUI color='0.5' File "/home/lhh/.local/lib/python2.7/site-packages/matplotlib/init.py", line 1867, in inner return func(ax, *args, **kwargs) File "/home/lhh/.local/lib/python2.7/site-packages/matplotlib/axes/_axes.py", line 5101, in fill_between 'is not 1-dimensional.') ValueError: Input passed into argument "u'y1'"is not 1-dimensional.

liuhuang31 commented 6 years ago

I find the problem maybe is the audio file. If I use the provided a001.wav and the reference/estimated file use myselfs, it works. But I use the other audio file, it happens the problem, no matter what version of matplotlib I use.

toni-heittola commented 6 years ago

Current version only supports mono audio. Parameter audio_signal is assumed to be 1-dimensional numpy.array. I will update documentation to indicate this.

liuhuang31 commented 6 years ago

Thanks a lot, this issue can be closed.