GithubHelp home page GithubHelp logo

keras_music_gereration's Introduction

Keras Music Generation

Music generation with Keras and LSTM

Requirements

Python

  1. Jupyter Notebook
  2. Python3.7

Packages

mido==1.2.9
tensorflow==1.14.0
Keras==2.1.2
sklearn==0.0
numpy==1.17.3

Check Jupyter Notebook

keras_music_gereration's People

Contributors

gamelogist avatar jacob5412 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

keras_music_gereration's Issues

some error at the end of the code

ValueError: Error when checking model input: the list of Numpy arrays that you are passing to your model is not the size the model expected. Expected to see 1 array(s), but instead got the following list of 8734 arrays: [array([[-0.61290323, 0.42222222]

it is laocation is about line 101 i have no idea how to fix it

#line 99 mid = MidiFile()
#line100 track = MidiTrack()
#line 101
#line 102 t = 0

Loss is NaN

While training, the loss is NaN all the time. Logging the code in the earlier steps, I figured that the combine variable you are using to combine notes and velocities has a NaN in every element.

It becomes NaN after this block:

note_min = np.min(notes)
note_max = np.max(notes)
velocities_min = np.min(velocities)
velocities_max = np.max(velocities)

for i in combine:
    i[0] = 2*(i[0]-((note_min+note_max)/2))/(note_max-note_min)
    i[1] = 2*(i[1]-((velocities_min+velocities_max)/2))/(velocities_max-velocities_min)

combine new value:

[[-0.3333333333333333, nan],
 [0.3333333333333333, nan],
 [-0.3888888888888889, nan],
 [0.2777777777777778, nan],
 [-0.5, nan],
 [0.16666666666666666, nan],
 [-0.6111111111111112, nan],
 ...,
 ...,
 ...,
]

Caused by division by 0. (velocities_min is equal to velocities_max, so their difference becomes 0.)

generated midis empty?

I downloaded the midis generated here, Generated_song_epoch=10.mid but they were empty

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.