Christopher Capobianco commited on
Commit
4438759
·
1 Parent(s): 50aa519

Centre LSTM Model image

Browse files
Files changed (1) hide show
  1. projects/06_Generative_Music.py +3 -1
projects/06_Generative_Music.py CHANGED
@@ -122,7 +122,9 @@ st.markdown("The data that our model will be trained on will consist of piano MI
122
  st.markdown("The sequence of notes and chords from the MIDI files are broken down into increments of 100, which are used to predict the next note or chord.")
123
  st.markdown("#### Model")
124
  st.markdown("For this project we will use a network consisting of three LSTM layers, three Dropout layers, two Dense layers and one activation layer.")
125
- st.image(lstm, caption = 'Music Generation Model', width = 250)
 
 
126
  st.markdown("It may be possible to improve this model by playing around with the the structure of the network, or adding new categories (e.g. varying note duration, rest periods between notes, etc). However, to achieve satisfying results with more classes we would also have to increase the depth of the LSTM network.")
127
  st.markdown("*This is based off the tutorial by Sigurður Skúli [How to Generate Music using a LSTM Neural Network in Keras](https://towardsdatascience.com/how-to-generate-music-using-a-lstm-neural-network-in-keras-68786834d4c5)*")
128
  st.divider()
 
122
  st.markdown("The sequence of notes and chords from the MIDI files are broken down into increments of 100, which are used to predict the next note or chord.")
123
  st.markdown("#### Model")
124
  st.markdown("For this project we will use a network consisting of three LSTM layers, three Dropout layers, two Dense layers and one activation layer.")
125
+ left_col, cent_col, right_col = st.columns(3)
126
+ with cent_col:
127
+ st.image(lstm, caption = 'Music Generation Model', width = 250)
128
  st.markdown("It may be possible to improve this model by playing around with the the structure of the network, or adding new categories (e.g. varying note duration, rest periods between notes, etc). However, to achieve satisfying results with more classes we would also have to increase the depth of the LSTM network.")
129
  st.markdown("*This is based off the tutorial by Sigurður Skúli [How to Generate Music using a LSTM Neural Network in Keras](https://towardsdatascience.com/how-to-generate-music-using-a-lstm-neural-network-in-keras-68786834d4c5)*")
130
  st.divider()