Code Monkey home page Code Monkey logo

Comments (6)

urinieto avatar urinieto commented on September 3, 2024

What version of jams are you using? You should use the jams version included in msaf (which is outdated, btw, and it is something I need to work on). This jams version should open all the files included here.

To use it, you can do something like:

from msaf import jams2
ref_inter, ref_labels = jams2.converters.load_jams_range(jams_file,    # Path to the jams file
                                                         "sections",   # Task
                                                         annotator=0,  # Annotator index, starting at 0
                                                         context="function"  # Structural level
                                                         )

Let me know if this works.

Just as a side note, the new version of jams will be awesome, and we are planning on release it at the end of August. I will probably update MSAF accordingly by then.

from msaf.

wangsix avatar wangsix commented on September 3, 2024

I was using the jams files from msaf, but tried to load them with pyjams. Your solution which use your parser for jams worked! Thank you.

from msaf.

wangsix avatar wangsix commented on September 3, 2024

Eh... so is there a interface for importing a .lab file into jams2 format?

from msaf.

urinieto avatar urinieto commented on September 3, 2024

There's not really an "interface" per se, but you can find a bunch of examples in the parsers folder:
https://github.com/urinieto/msaf/tree/master/datasets/parsers

from msaf.

urinieto avatar urinieto commented on September 3, 2024

Eh... so is there a interface for importing a .lab file into jams2 format?

In case it might be useful, here you have a converter from JAMS2 to the new JAMS format (but only converts beats and segments):
https://github.com/urinieto/msaf/blob/jams/datasets/parsers/jams2_to_jams.py

Also, I'm working on including the new jams in msaf. I guess it should be ready in a couple of weeks. All the datasets have been converted already.

from msaf.

urinieto avatar urinieto commented on September 3, 2024

Jams 0.2 is already working in MSAF now. I believe this thread could be closed.

from msaf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.