Giter VIP home page Giter VIP logo

sed_vis's Issues

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

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.

ModuleNotFoundError: No module named 'sed_vis.util'

Hi! After successful installation in a python 3.6 environment on Ubuntu 20.04 LTS, visualizers/sed_visualizer.py returns:

Traceback (most recent call last): File "visualizers/sed_visualizer.py", line 10, in <module> import sed_vis File "<frozen zipimport>", line 259, in load_module File "/home/galvo/.virtualenvs/py36/lib/python3.8/site-packages/sed_vis-0.1.2-py3.8.egg/sed_vis/__init__.py", line 5, in <module> File "<frozen zipimport>", line 259, in load_module File "/home/galvo/.virtualenvs/py36/lib/python3.8/site-packages/sed_vis-0.1.2-py3.8.egg/sed_vis/visualization.py", line 21, in <module> ModuleNotFoundError: No module named 'sed_vis.util'

Any hints? Thanks.

Unable to get the Visualiser UI

I am unable to get the UI as shown here. Instead, I am getting a static plot of the event roll as attached after executing the test_sed_visualizer.sh script.
Screenshot 2021-10-15 at 6 41 56 PM

Visualizer with probability

Hi, when I run the
Quickstart: Using sed_vis in Python code
with the demo file a001.wav and a001_system_output_prob.csv
that is:

import sed_vis
import dcase_util
audio_container = dcase_util.containers.AudioContainer().load(
'./tests/data/a001.wav'
)
reference_event_list = dcase_util.containers.MetaDataContainer().load(
'./tests/data/a001.ann'
)
estimated_event_list = dcase_util.containers.MetaDataContainer().load(
'./tests/data/a001_system_output_prob.csv'
)
event_lists = {
'reference': reference_event_list,
'estimated': estimated_event_list
}
vis = sed_vis.visualization.EventListVisualizer(event_lists=event_lists,
audio_signal=audio_container.data,
sampling_rate=audio_container.fs)
vis.show()

However, I got the following warning:
.../lib/python2.7/site-packages/matplotlib/figure.py:2299: UserWarning: This figure includes Axes that are not compatible with tight_layout, so results might be incorrect.
warnings.warn("This figure includes Axes that are not compatible "
.../lib/python2.7/site-packages/matplotlib/tight_layout.py:209: UserWarning: tight_layout cannot make axes height small enough to accommodate all axes decorations
warnings.warn('tight_layout cannot make axes height small enough '

and the resulted png figure didn't show probability and the estimated results were also gone.

I don't know how to figure it out, can you give me some tips? Thank you very much!

IOError: [Errno -9996] Invalid output device (no default output device)

Hello, I get a figure with 'play', 'stop' and 'close' tag, after run sed_visualizer.py as supposed.
I want to listen to the audio by click the 'play' tag,
however, I get a error:
IOError: [Errno -9996] Invalid output device (no default output device)
as shown in the title

I google it, and find that maybe something wrong with pyaudio and portaudio
I try to fix it follow the two methods in the following :
https://stackoverflow.com/questions/4672155/pyaudio-ioerror-no-default-input-device-available?rq=1

unfortunately, they fail to fix it.

Do you have met this? any advice would be appreciated!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.