This repo is a service built based on Competition-2022-OpenVINO-Devcup (thanks to my teammates for their contributions), with additional functions of downloading audio sources from youtube, mixing midi, and export music sheet by calling MuseScore.
- For downloading audio sources from youtube, please install the dependencies with:
pip install pytube==12.1.3 pytube3==9.6.4
- For mixing midi, please install the dependencies with:
pip install git+https://github.com/vishnubob/python-midi@feature/python3
- For export music sheet as image (.png), please install MuseScore3
- To package it into an exe file, please install the dependencies with:
pip install Flask Flask-Cors pyinstaller
- Modify the path in binaries, datas, and hiddenimports in build.spec:
binaries=[('<path-to-openvino-package-in-env>\\libs\\*', '.\\openvino\\libs')],
datas=[('<path-to-music_source_separation-model>\\*', '.\\music_source_separation\\model'),
('<path-to-librosa-package-in-env>\\util\\example_data\\*', '.\\librosa\\util\\example_data'),
('<path-to-music_transcription-model>\\basic_pitch_43844_model.onnx', '.\\music_transcription')],
hiddenimports=['openvino.pyopenvino', 'openvino.inference_engine.constants'],
- Run the following command to build the service:
pyinstaller --distpath <path-to-exe-file> build.spec
- Run the following command to execute the service:
cd <path-to-exe-file>\CyberAudio
CyberAudio.exe
- UI for the service