Closed annahung31 closed 3 years ago
Hi,
It should be annotations.append(Annotation(time=0, annotation=annotation))
rather than
annotations.append(Annotation(annotation=annotation))
as time
is a required attribute for Annotation class.
For debugging, you could do music = emopia[0]
before converting it as ignore_exceptions
is set to True by default in convert
function.
Thanks!
Got it, thanks!
Hi,
I'm adding a new dataset that contains midi files and their emotion labels. About the emotion labels, I try to follow the way that HaydnOp20 did:
get_annotations
to extract the annotation.read
functionHowever, when I call the class, the annotations are still
[]
. Is there anything I missed? Thanks!My dataset class
How I call the dataset
Expected result
Current result