Comments (3)
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.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from symbolic-melody-identification.