enriqueav / lstm_lyrics

LSTM text generation by word. Used to generate lyrics from a corpus of a music genre.
https://medium.com/@enriqueav/word-level-lstm-text-generator-creating-automatic-song-lyrics-with-neural-networks-b8a1617104fb
MIT License
80 stars 27 forks source link

generate.py - unsupported operand #17

Open bagerakbay opened 5 years ago

bagerakbay commented 5 years ago

I get this error when using generate.py.

File "generate.py", line 133, in model, indices_word, word_indices, seed, sequence_length, diversity, quantity File "generate.py", line 68, in generate_text next_index = sample(preds, diversity) File "generate.py", line 35, in sample preds = np.log(preds) / temperature TypeError: unsupported operand type(s) for /: 'float' and 'NoneType'