Git Product home page Git Product logo

folk-rnn's People

Contributors

boblsturm avatar irakorshunova avatar jamesowers avatar jfsantos avatar tobyspark avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

folk-rnn's Issues

EOFError when loading metadata

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!

Exception: You are creating a TensorVariable with float64 dtype.

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
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:
/prj/folk-rnn$

Data formatting issue: missing unique IDs & stray HTML

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:

  1. 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.

  2. 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.)

how to use train_rnn?

Usage: train_rnn.py <configuration_name>

which is one is <configuration_name> and respectively?

ImportError: cannot import name downsample

rzai@rzai00:/prj/folk-rnn$ python train_rnn.py
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:
/prj/folk-rnn$

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.