Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C++ YAML loader fails to parse JSON files that are considered valid YAMLs #85

Open
palonso opened this issue Feb 12, 2019 · 1 comment

Comments

@palonso
Copy link
Contributor

palonso commented Feb 12, 2019

Gaia generates empty points when parsing JSON files considered valid YAMLs with the C++ YAML loader.
These JSONs are considered valid YAMLs by several online parsers such as yamllint or ypaste. Also succedded to parse those with the python wrappers included in Gaia fastyaml and yaml. This behavior should be improved for further consistency among parsers.

For the moment, a valid workaround is to use the json_to_sig.py script provided by Gaia. Which generates valid YAMLs for the C++ parser.

This behavior was obtained by extracting some JSONs with Essentia's essentia_streaming_extractor_music and feeding them into Gaia's train_model.py script.

Minimum python code to reproduce this is:

from gaia2 import *

p1 = Point()
p1.load('your/valid/JSON/.json')
print p1.layout()

Returns:

enums:
descriptors:
@alastair
Copy link
Member

Related to #12?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants