SkillAgentSearch skills...

Synesthesia

No description available

Install / Use

/learn @sudongtan/Synesthesia
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Synesthesia

Code and media samples for the paper Automated Music Generation for Visual Art through Emotion.

Generated Samples

|||||| |:----:|:----:|:----:|:----:|:----:| |Input|6|12|10|8| |Output|midi|midi|midi|midi| |Input|14|4|2|1| |Output|midi|midi|midi|midi| |Input|13|11|9|5| |Output|midi|midi|midi|midi| |Input||3|7|| |Output||midi|midi||

Sources of the images: https://www.imageemotion.org/

Instructions

Dependencies

  • python3.7
  • cuda10
  • musescore

The remaining python dependencies can be installed with:

pip install -r requirements.txt

Training dataset

The full dataset can be downloaded from https://www.cs.rochester.edu/u/qyou/deepemotion/ .

PerformanceRNN

cd rnn
python preprocess.py ../dataset/midi/train ../dataset/midi/rnn # preprocess data
python train.py -s ../model/rnn_example.sess -d ../dataset/midi/rnn -i 10 # train model
python generate.py -i ../dataset/image/test/1.jpg #generate music from a given image

The implementation of performance RNN is modified from https://github.com/djosix/Performance-RNN-PyTorch .

Transformer

cd transformer
python preprocess.py # preprocess data
python train.py # train model
python generate.py -i ../dataset/image/test/1.jpg #generate music from a given image

The implementation of transformer is modified from https://github.com/bearpelican/musicautobot .

View on GitHub
GitHub Stars13
CategoryDevelopment
Updated6mo ago
Forks3

Languages

Python

Security Score

62/100

Audited on Aug 31, 2025

No findings