Open Mohit0928 opened 3 years ago
This could end up being a massive pain to handle properly... The underlying problem is we are using serde
and serde_yaml
for deserializing, and "data did not match any variant of untagged enum XXX" is the hard-coded error message when it tries to deserialize an enum and someone didn't provide a model
, output
, proc-block
, or capability
key.
To make things more annoying, serde_yaml
doesn't provide any way to capture the "span" of an element, so after deserializing an item we don't know which line it was on and therefore can't provide nice error messages pointing at the line to blame. I made a PR to give serde_yaml
the ability to capture span information way back in May (https://github.com/dtolnay/serde-yaml/pull/201), but it seems like nobody has responded to it.
I wrote a yml file for YAMNet (a deep net that predicts 521 audio events), but it is throwing this error.
I got this error because I made an error in the "audio_float" section of the Runefile.yml. By mistake, I wrote "proc-model" instead of "proc-block". It would be better if we could improve the quality of errors displayed. It could have at least pointed to the section where I have made the error. It would help in tracing the error faster.
Model info:
Input: We can pass any variable size audio file as input. To keep it simple, I have decided to pass only 1-sec audio as input. Outputs: There will be 3 outputs. I only need 1st for my use case. Below is the Runefile.yml file that I wrote for this.