Comments (5)
I might have found a solution.
Whenever your network finishes an epoch, it saves it weights to a new file, called something like 'weights-improvement-11-2.9103-bigger.hdf5'
. These weights are what you want to generate a new midi. The file predict.py
however, always loads in the same weights: Line 70: model.load_weights('weights.hdf5')
. That is why you're getting an error.
You should be able to run the network with any number of nodes, be it 512, 256 or even 2048. You have to load in the correct weights for that, however. What I did as a temporary solution is copy the name of the newly-generated weight file, and paste it into line 70 before generating a new midi. This works, but it isn't exactly elegant. Hopefully there'll be some kind of fix soon.
from classical-piano-composer.
Did you change the code at all?
If not, maybe updating keras or tensorflow might help:
pip3 install --upgrade keras tensorflow
from classical-piano-composer.
Exactly same problem here,too.. :(
from classical-piano-composer.
I had the same problem too and this problem can also be caused because of the difference between the notes that you currently have while making the training and the notes file from Skuldur's repository. In case if you are using the notes file from the repository, try to create your own notes file and see if that works.
from classical-piano-composer.
So after running lstm.py
several weights weights-improvement-......
are outputted in the classical-piano-composer folder. Do you copy the name of the recent weight and replace it here model.load_weights('weights.hdf5')
?
from classical-piano-composer.
Related Issues (20)
- A few issues (with solutions)
- Only one track, playing HOT 7
- Using weights trained on anohter computer HOT 1
- Nevermind
- Predicting the same note HOT 3
- randomSeed
- data file HOT 1
- ValueError(Shape error)
- ValueError(Shape error) while running predict.py iam getting this error. Anyone can help me,Thanks in advance HOT 15
- Can't Run with Tensorflow-gpu HOT 3
- Question about Parts used from the midi files
- Stuck on I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): Host, Default Version HOT 2
- Accepting PRs?
- Alternate Instruments HOT 4
- np_utils is not defined
- music21.exceptions21.StreamException: HOT 3
- failed to find TimeSignature in meterStream; cannot process Measures HOT 1
- MIDI generated is just one note repeated HOT 4
- offset should be += 1 not += 0.5 in predict.py
- data/notes not found
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 classical-piano-composer.