Skuldur / Classical-Piano-Composer

MIT License
602 stars 318 forks source link

MIDI generated is just one note repeated #51

Open Stefan-Hopman opened 2 years ago

Stefan-Hopman commented 2 years ago

Hello,

First of all, thank you for putting this repo together! I am running into an issue where my generated MIDI is just one note repeated. I made two change to the model. I changed LSTM to CuDNNLSTM and added dropout layers in between because CuDNNLSTM has no inbuilt dropout layers. Does anyone know why this is happening? My model is

   model = Sequential()
   model.add(CuDNNLSTM(
        512,
        input_shape=(network_input.shape[1], network_input.shape[2]),
        return_sequences=True
    ))
    model.add(Dropout(0.2))
    model.add(CuDNNLSTM(512, return_sequences=True,))
    model.add(Dropout(0.2))
    model.add(CuDNNLSTM(512))
    model.add(Dropout(0.2))
    model.add(BatchNorm())
    model.add(Dropout(0.3))
    model.add(Dense(256))
    model.add(Activation('relu'))
    model.add(BatchNorm())
    model.add(Dropout(0.3))
    model.add(Dense(n_vocab))
    model.add(Activation('softmax'))
    model.compile(loss='categorical_crossentropy', optimizer='rmsprop')
    return model 
Screen Shot 2022-05-03 at 11 52 45 AM
DiscoLucas commented 1 year ago

Hey, I'm experiencing the same issue, did you ever find a solution?

xngln24 commented 1 year ago

Any solution found yet? I have the same problem.

skrinsky commented 8 months ago

hhheeeeeellllllppppp usssssss

skrinsky commented 8 months ago

please <3 :):) AHHHHHHHH