Open sksar opened 7 years ago
Try this: pip3 install git+https://github.com/vishnubob/python-midi@feature/python3
@llSourcell maybe add to readme
### Dependencies on Windows with python3
pip3 install pandas
pip3 install msgpack-python
pip3 install numpy
pip3 install glob2
pip3 install tqdm
pip3 install git+https://github.com/vishnubob/python-midi@feature/python3
maybe this helps if you switch to tensorflow >= 1.0.0
after that i get
Traceback (most recent call last):
File "rbm_chords.py", line 106, in <module>
W_adder = tf.mul(lr / size_bt, tf.sub(tf.matmul(tf.transpose(x), h), tf.matmul(tf.transpose(x_sample), h_sample)))
AttributeError: module 'tensorflow' has no attribute 'mul'
so this helped me
You'll need to replace tf.mul with tf.multiply.
You'll need to replace tf.sub with tf.subtract.
my next error
Traceback (most recent call last):
File "rbm_chords.py", line 127, in <module>
song = song[:np.floor(song.shape[0] / num_timesteps) * num_timesteps]
TypeError: slice indices must be integers or None or have an __index__ method
change rbm_chords.py:129 to
song = song[:int(np.floor(song.shape[0] // num_timesteps) * num_timesteps)]
btw to hide tensorflow warnings add at the bottom of the import block
import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
see https://github.com/mschultheiss83/Music_Generator_Demo for my fixes
I tried to run this in windows but it did not work as one of it's dependencies does not support windows..
The
python-midi
library is required by themidi_manipulation.py
script. But unfortunately thepython-midi
library requires the ALSA Sequncer which is only for Linux, so this does not work on Windows...I tried to install python-midi, but it fails.. Upon investigation the setup code i found this
I think there is need of something else to be done so that it works across all platforms..