irakorshunova / folk-rnn Goto Github PK
View Code? Open in Web Editor NEWfolk music modelling with LSTM
License: MIT License
folk music modelling with LSTM
License: MIT License
Hello!
I just started setting this up, but after running all of the setup commands, I get an EOFError when trying to load the default metadata pickle (folkrnn_v2.pkl).
Here's the traceback plus the warnings beforehand:
WARNING (theano.configdefaults): g++ not available, if using conda: `conda install m2w64-toolchain`
C:\Users\parkm\Anaconda3\envs\frnn\lib\site-packages\theano\configdefaults.py:560: UserWarning: DeprecationWarning: there is no c++ compiler.This is deprecated and with Theano 0.11 a c++ compiler will be mandatory
warnings.warn("DeprecationWarning: there is no c++ compiler."
WARNING (theano.configdefaults): g++ not detected ! Theano will be unable to execute optimized C-implementations (for both CPU and GPU) and will default to Python implementations. Performance will be severely degraded. To remove this warning, set Theano flags cxx to an empty string.
WARNING (theano.tensor.blas): Using NumPy C-API based implementation for BLAS functions.
Traceback (most recent call last):
File "sample_rnn.py", line 38, in <module>
metadata = pickle.load(f)
EOFError
Is there a step I'm missing to installing this? I'm running Anaconda 4.8.2 with Python 2.7 on Windows 10 and I'm installing this on a fresh environment just as the guide on the readme says.
Thanks!
rzai@rzai00:~/prj/folk-rnn$ cat ~/.theanorc
[global]
floatX = float32
device = gpu
warn_float64=ignore
[nvcc]
fastmath = True
rzai@rzai00:/prj/folk-rnn$ CUDA_VISIBLE_DEVICES=1 python train_rnn.py config5 data/allabcworepeats_parsed/prj/folk-rnn$
Using gpu device 0: GeForce GTX 1080 (CNMeM is disabled)
float32
config5-allabcworepeats_parsed-20161123-204529
vocabulary size: 12535
train_rnn.py:68: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
valid_idxs = rng.choice(np.arange(ntunes), nvalid_tunes, replace=False)
n tunes: 23636
n train tunes: 22484.0
n validation tunes: 1152.0
min, max length 54 2958
Building the model
Traceback (most recent call last):
File "train_rnn.py", line 127, in
predictions = nn.layers.get_output(l_out)
File "/usr/local/lib/python2.7/dist-packages/lasagne/layers/helper.py", line 185, in get_output
all_outputs[layer] = layer.get_output_for(layer_inputs, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/lasagne/layers/recurrent.py", line 1050, in get_output_for
strict=True)[0]
File "/usr/local/lib/python2.7/dist-packages/theano/scan_module/scan.py", line 792, in scan
fake_nonseqs = [x.type() for x in non_seqs]
File "/usr/local/lib/python2.7/dist-packages/theano/gof/type.py", line 323, in call
return utils.add_tag_trace(self.make_variable(name))
File "/usr/local/lib/python2.7/dist-packages/theano/tensor/type.py", line 401, in make_variable
return self.Variable(self, name=name)
File "/usr/local/lib/python2.7/dist-packages/theano/tensor/var.py", line 716, in init
raise Exception(msg)
Exception: You are creating a TensorVariable with float64 dtype. You requested an action via the Theano flag warn_float64={ignore,warn,raise,pdb}.
rzai@rzai00:
I am a user from India. I want to adapt the code for guitar music. Can you kindly make the readme more elaborate explaining how to run the project ? This might help me in doing research.
Thank you !
MusicGeneration.txt
I've been trying out ABC with GPT-2 along the lines of my poetry generation (max-likelihood training and then I'll use OA's RL preference-learning for finetuning), and I've found that some of the ABC files in data/
appear to have 2 issues:
there are ~2k stray </html>
lines which should be removed, as this is not ABC music (unsure if it's syntactically invalid, but they definitely shouldn't be there). This can be easily removed with any search-and-replace.
lack of unique IDs: some ABC compilers (specifically, abc2midi
) require unique IDs like X: 1
for each ABC song. http://abcnotation.com/wiki/abc:standard:v2.1#xreference_number notes that
The
X:
field may be empty, although this is not recommended.
(I worked around this by using an Emacs macro to prefix it and an incrementing integer.)
https://themachinefolksession.org/
Not sure where to put this as help also gave a 500 error.
Wanted to register and comment on a song I submitted, "And August Ran To Meet Me." It seemed to accept my email but not the password I made. I try to reset the password and never get an email to reset it.
Usage: train_rnn.py <configuration_name>
which is one is <configuration_name> and respectively?
rzai@rzai00:/prj/folk-rnn$ python train_rnn.py/prj/folk-rnn$
Using gpu device 0: GeForce GTX 1080 (CNMeM is disabled, cuDNN 5005)
Traceback (most recent call last):
File "train_rnn.py", line 9, in
import lasagne as nn
File "/usr/local/lib/python2.7/dist-packages/lasagne/init.py", line 19, in
from . import layers
File "/usr/local/lib/python2.7/dist-packages/lasagne/layers/init.py", line 7, in
from .pool import *
File "/usr/local/lib/python2.7/dist-packages/lasagne/layers/pool.py", line 6, in
from theano.tensor.signal import downsample
ImportError: cannot import name downsample
rzai@rzai00:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.