Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/SkyTNT/midi-model
Midi event transformer for symbolic music generation
https://github.com/SkyTNT/midi-model
midi midi-generation music-composition music-generation symbolic-music-generation transformer
Last synced: 2 months ago
JSON representation
Midi event transformer for symbolic music generation
- Host: GitHub
- URL: https://github.com/SkyTNT/midi-model
- Owner: SkyTNT
- License: apache-2.0
- Created: 2023-08-25T04:20:15.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-04T17:56:19.000Z (3 months ago)
- Last Synced: 2024-11-04T18:42:19.100Z (3 months ago)
- Topics: midi, midi-generation, music-composition, music-generation, symbolic-music-generation, transformer
- Language: Python
- Homepage:
- Size: 174 KB
- Stars: 183
- Watchers: 5
- Forks: 29
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Midi-Model
## Midi event transformer for music generation
![](./banner.png)
## Updates
- v1.3: MIDITokenizerV2 and new MidiVisualizer
- v1.2 : Optimise the tokenizer and dataset. The dataset was filtered by MIDITokenizer.check_quality. Using the higher quality dataset to train the model, the performance of the model is significantly improved.## Demo
- [online: huggingface](https://huggingface.co/spaces/skytnt/midi-composer)
- [online: colab](https://colab.research.google.com/github/SkyTNT/midi-model/blob/main/demo.ipynb)
- [download windows app](https://github.com/SkyTNT/midi-model/releases)
## Pretrained model
[huggingface](https://huggingface.co/skytnt/midi-model-tv2o-medium)
## Dataset
[projectlosangeles/Los-Angeles-MIDI-Dataset](https://huggingface.co/datasets/projectlosangeles/Los-Angeles-MIDI-Dataset)
## Requirements
- install [pytorch](https://pytorch.org/)(recommend pytorch>=2.0)
- install [fluidsynth](https://www.fluidsynth.org/)>=2.0.0
- `pip install -r requirements.txt`## Run app
`python app.py`
## Train
`python train.py`
## Citation```bibtex
@misc{skytnt2024midimodel,
author = {SkyTNT},
title = {Midi Model: Midi event transformer for symbolic music generation},
year = {2024},
howpublished = {\url{https://github.com/SkyTNT/midi-model}},
}