ml5js / training-charRNN

Training charRNN model for ml5js
Other
96 stars 46 forks source link

Uncaught TypeError: ml5.LSTMGenerator is not a function #8

Closed koji closed 5 years ago

koji commented 5 years ago

Seems that README.md needs small update for the latest version of ml5js.

I guess for the latest version, we need to use charRNN instead of LSTMGenerator. Actually the following works to me.

const lstm = ml5.charRNN('./dataset/', modelLoaded);
yining1023 commented 5 years ago

Thank you for reporting it! It's fixed now.

zenril commented 5 years ago

It still says to use ml5.LSTMGenerator on the documentation

koji commented 5 years ago

@zenril yeah, but actually the latest lib doesn't use LSTM anymore. The example has been updated. https://github.com/ml5js/ml5-library/blob/master/src/CharRNN/index.js#L21 https://github.com/ml5js/ml5-examples/tree/master/p5js/LSTM/LSTM_Text

I guess the team is busy for something now.

theunreal commented 5 years ago

@yining1023 It's still errors at:

https://ml5js.org/docs/lstm-interactive-example