Skip to content

Ryan-2222/EmotionbasedMusicRecommendationSystem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Emotion based Music Recommendation

Recommend you a piece of music that suits you based on your current mood!

Hardware Requirements

  • A suitable camera installed
  • A PC

Libraries Required

  • Tensorflow
  • Keras
  • opencv-python
  • pillow
  • matplotlib
  • scipy
  • streamlit
  • streamlit-player
  • streamlit-webrtc
pip install tensorflow
pip install keras
pip install opencv-python
pip install pillow
pip install matplotlib
pip install scipy
pip install streamlit
pip install streamlit_player
pip install streamlit_webrtc

or use requirements.txt

pip install -r requirements.txt

How to use?

  • Open cmd in windows.
  • Run the program with the following command in cmd.
py main.py

After running for a while, the program will direct you to your browser with the server hosting. Here is the UI.

avatar

I have also hosted the app in streamlit share. Check it here.

https://ryan-2222-emotionbasedmusicrecommendationsystem-app-t3d1tz.streamlitapp.com/

Click the start button and wait a while. You will see your face inside the box! (not myself)

avatar

Enjoy your music time!

Notice: Music can be edited on songs/{emotion}.txt if you would like to.

Graph

You may see the Graph about Data Accuracy and Data Loss of the AI model here.

avatar


AI model training

We have already trained a model for you which is saved in Model folder. However if you want to train it yourself, we are using Kaggle fer2013 as our training datasets. Please download the dataset fer2013.csv and place it into data folder

py fer2013_process 

To process the dataset

py train.py

To train the model


Releases

No releases published

Packages

No packages published

Languages