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

Is it possible to convert this annotation format to a music score? #11

Open
dniku opened this issue Jun 24, 2024 · 0 comments
Open

Is it possible to convert this annotation format to a music score? #11

dniku opened this issue Jun 24, 2024 · 0 comments

Comments

@dniku
Copy link

dniku commented Jun 24, 2024

I am looking at DeepScores-V2 in particular. I have loaded the data in Colab using:

!pip install omrdatasettools

import omrdatasettools

downloader = omrdatasettools.Downloader()
downloader.download_and_extract_dataset(omrdatasettools.OmrDataset.DeepScores_V2_Dense, 'data')

!apt install swig
!git clone https://github.com/yvan674/obb_anns
!mv obb_anns obb_anns_git
!cd obb_anns_git && python3 setup.py develop

import sys

if sys.path[-1] != 'obb_anns_git':
  sys.path.append('obb_anns_git')

import obb_anns

o = obb_anns.OBBAnns('data/ds2_dense/deepscores_test.json')

o.load_annotations()

imgs, anns = o.get_img_ann_pair(idxs=list(range(1)))

and now I can inspect the annotations using

anns[0]

but those are meant for instance segmentation. Is there a way to convert these annotations to MusicXML or some other machine-readable sheet music format, e.g. ABC notation or LilyPond, or extract the sheet music from the DeepScores-V2 dataset in some other way?

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

1 participant