MTG / gaia

C++ library to apply similarity measures and classifications on the results of audio analysis, including Python bindings. Together with Essentia it can be used to compute high-level descriptions of music.
http://essentia.upf.edu
GNU Affero General Public License v3.0
271 stars 66 forks source link

can open the json file to convert it to yaml irrespective of the loca… #68

Closed vamshichowdary closed 6 years ago

vamshichowdary commented 6 years ago

…tion of json_to_sig.py

json_to_sig.py needed to be placed in the same directory as of filelist yaml file for it to read the filelist file and convert descriptors to yaml format. With these changes, the script can be run from repo directory itself (or any other directory for that matter).

dbogdanov commented 6 years ago

This fix makes the script less generic. No need to copy the json_to_sig script itself to a proper location, but instead, you could run it from a proper directory, so that all json paths are resolved correctly. The 'filelist' yaml file may contain relative paths as well as absolute paths for json files, and those json files aren't necessarily in the same folder where filelist is located.

dbogdanov commented 6 years ago

Cherry-picked the fix for C++11 (1d593b89a65cbf0a6b3f1e70cb34e8d067dc6fd5)