sed_eval.io.load_scene_list

sed_eval.io.load_scene_list(filename, **kwargs)[source]

Load scene list from csv formatted text-file

Supported formats (see more dcase_util.containers.MetaDataContainer.load() method):

  • [filename][delimiter][scene label]
  • [filename][delimiter][segment start (float >= 0)][delimiter][segment stop (float >= 0)][delimiter][scene label]

Supported delimiters: ,, ;, tab

Example of scene list file:

scenes_stereo/supermarket09.wav supermarket
scenes_stereo/tubestation10.wav tubestation
scenes_stereo/quietstreet08.wav quietstreet
scenes_stereo/restaurant05.wav  restaurant
scenes_stereo/busystreet05.wav  busystreet
scenes_stereo/openairmarket04.wav       openairmarket
scenes_stereo/quietstreet01.wav quietstreet
scenes_stereo/supermarket05.wav supermarket
scenes_stereo/openairmarket01.wav       openairmarket
Parameters:

filename : str

Path to the csv-file

Returns:

list of dict

Scene list