Giter VIP home page Giter VIP logo

Comments (3)

00sapo avatar 00sapo commented on May 30, 2024 1

To build the model you need the kernel parameters and the network hyper-parameters. The network hyper parameters can be found, if you want, using hyer-parameter optimization. You can also find new kernels by training the network on a dataset. Part of the dataset that we could redistribute is in the data directory compressed in xz format. You should uncompress it first.

By the way, our hyper-parameters and kernels are distributed in root folder of the git project: cnn_parameters.json (hyper-parameters), nn_kernels_pop.pkl (kernels trained on the pop dataset) and nn_kernels_mozart.pkl (kernels trained on the mozart dataset). So, you can rebuild the model using these trained kernels/hyper-parameters and then test the model on any song.

Ciao,
f

from symbolic-melody-identification.

00sapo avatar 00sapo commented on May 30, 2024

Hello, I'm happy that you're interested in this work! It's been a long time since I don't use this code, but let's try to solve the issue.

This code is a little old and written using lasagne and theano which are both outdated now. The list of kernels provided is a python object that should be used to compile your model on your architecture. This is needed because, as far as I know, theano needed to recompile the mdel on each different architecture before of using it (e.g. cpu x64, cpu x32, gpu, etc). This is a bit strange for people used to modern framework like pytorch, but it allowed for good (and perhaps better) numeric and computational optimizations.

So, if I understand correctly your issue, you should first compile the model... see here:

./terminal_client.py --rebuild kernels.pck parameters.json model.pkl

Then, you can use your model to extract melodies:

./terminal_client.py --model model.pkl --extract file.mxl output.mid

from symbolic-melody-identification.

sophia1488 avatar sophia1488 commented on May 30, 2024

Thank you for your reply!

But compiling the model requires the kernels saved in kernels.pkl, I assume that the command to train over all files with extension .ext in mydirectory using hyper-parameters contained in parameters.json (saves kernels to a pickle object) is also needed?
./terminal_client.py --train mydirectory .ext parameters.json

Are the files (.ext) available so that I can run this command? I can't find them in your repo.

I appreciate your help!

from symbolic-melody-identification.

Related Issues (1)

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.