Magenta의 Drums RNN을 사용하여 드럼 트랙 자동 생성
2610 단어 magentaMachineLearningRNN
Magenta와 Drums RNN
Magenta란 무엇입니까?
라는 프로젝트입니다.
Drums RNN이란?
라는 모델입니다.
전제
이름
버전
Mac
Catalina(10.15.6)
파이썬
3.6.10::Anaconda, Inc.
설정
1. Magenta 설정
Python을 설치하는 방법도 있지만, 이미 Python이 포함되어 있기 때문에 Manual Install
pip install magenta
그러면 끝날까라고 생각했는데, 이하 에러에 조우했으므로, 한 개씩 부서 갔습니다.
오류 및 대응 방법
환경이 이미 어느 정도 완성되고 있었기 때문에, 필요한 라이브러리의 버젼이 맞지 않는다고 하는 에러가 나왔습니다.
ERROR: tensorflow 1.15.0 has requirement gast==0.2.2, but you'll have gast 0.3.3 which is incompatible.
ERROR: google-api-core 1.21.0 has requirement protobuf>=3.12.0, but you'll have protobuf 3.11.3 which is incompatible.
ERROR: tensor2tensor 1.15.7 has requirement tensorflow-probability==0.7.0, but you'll have tensorflow-probability 0.10.1 which is incompatible.
ERROR: apache-beam 2.22.0 has requirement dill<0.3.2,>=0.3.1.1, but you'll have dill 0.3.2 which is incompatible.
ERROR: apache-beam 2.22.0 has requirement oauth2client<4,>=2.0.1, but you'll have oauth2client 4.1.3 which is incompatible.
여기는 어리석은 일치하는 버전을 설치했습니다. 다음은 샘플.
pip install tensorflow-probability==0.7.0
2. Magenta 리포지토리 복제
git clone https://github.com/magenta/magenta.git
3. 학습된 모델 다운로드
아래 링크에서 깜박입니다.
![](https://s1.md5.ltd/image/db94ad0cf1b17a1d95dcd1f6d75615e0.gif)
4. Drums RNN 실행
1. Magenta 설정
Python을 설치하는 방법도 있지만, 이미 Python이 포함되어 있기 때문에
Manual Install
pip install magenta
그러면 끝날까라고 생각했는데, 이하 에러에 조우했으므로, 한 개씩 부서 갔습니다.오류 및 대응 방법
환경이 이미 어느 정도 완성되고 있었기 때문에, 필요한 라이브러리의 버젼이 맞지 않는다고 하는 에러가 나왔습니다.
ERROR: tensorflow 1.15.0 has requirement gast==0.2.2, but you'll have gast 0.3.3 which is incompatible.
ERROR: google-api-core 1.21.0 has requirement protobuf>=3.12.0, but you'll have protobuf 3.11.3 which is incompatible.
ERROR: tensor2tensor 1.15.7 has requirement tensorflow-probability==0.7.0, but you'll have tensorflow-probability 0.10.1 which is incompatible.
ERROR: apache-beam 2.22.0 has requirement dill<0.3.2,>=0.3.1.1, but you'll have dill 0.3.2 which is incompatible.
ERROR: apache-beam 2.22.0 has requirement oauth2client<4,>=2.0.1, but you'll have oauth2client 4.1.3 which is incompatible.
여기는 어리석은 일치하는 버전을 설치했습니다. 다음은 샘플.
pip install tensorflow-probability==0.7.0
2. Magenta 리포지토리 복제
git clone https://github.com/magenta/magenta.git
3. 학습된 모델 다운로드
아래 링크에서 깜박입니다.
![](https://s1.md5.ltd/image/db94ad0cf1b17a1d95dcd1f6d75615e0.gif)
4. Drums RNN 실행
python drums_rnn_generate.py --config='one_drum' --bundle_file='~/Downloads/drum_kit_rnn.mag' --output_dir=/tmp/drums_rnn/generated --num_outputs=10 --num_steps=128 --primer_drums="[(36,)]"
Reference
이 문제에 관하여(Magenta의 Drums RNN을 사용하여 드럼 트랙 자동 생성), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/matchyy/items/63b6b627e9b18a10e35a텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)