shady-cs15 / slash Goto Github PK
View Code? Open in Web Editor NEWTeaching neural networks how to play guitar: Generating guitar solos with samplernn.
Home Page: https://shady-cs15.github.io/blogs/slash.html
License: MIT License
Teaching neural networks how to play guitar: Generating guitar solos with samplernn.
Home Page: https://shady-cs15.github.io/blogs/slash.html
License: MIT License
print('Minibatch perplexity: %.2f' % float(
np.exp(logprob(predictions, labels))))
License + Documentation
uint8
in stead of float32
.data/abc.wav
and create tmp/abc_x.npy
and tmp/abc_m.npy
one batch corresponds to one clip.
select batch_size number of anchor pointers in the clip.
use masking as required.
check if the mlp stack pays attention to global context as well.
make down_sampl = tf.zeros(..)
and check generate audio
update batch_generate.py
to generate batches spanning the entire dataset.
check generation phase of gen-script.py
.
format print statements
check generative capabilities at every validation step.
clip_iter
=20
n_epochs
= 10
If accuracy doesn't improve, use constant divisor for normalizing in stead of tf.reduce_sum
.
Sample for validation
dev-script.py
line 29
is_training=False
line 52
bptt_batch_loss, acc, np_state, op, out =
sess.run([t_model.loss, t_model.mean_acc, t_model.final_state, optimizer, t_model.outputs],
feed_dict={input:bptt_batch_x, label:bptt_batch_y, t_model.initial_state[0]:np_state[0], t_model.initial_state[1]:np_state[1]})
state includes
add summaries
batch_size
, n_steps
] in stead of [batch_size
, n_steps
, 16
]. Reason follows.>>> x = tf.placeholder('float32',[2, 3])
>>> y = tf.placeholder('float32',[2, 1])
>>> z = x*y
>>> with tf.Session as s:
... X = [[1., 1., 1.], [1., 1., 1.]]
... Y = [[1.], [0.]]
... Z = s.run([z], feed_dict={x:X, y:Y})
... print Z
Roughly 100 audio clips needed
Needed for generation
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.