https://github.com/facebookresearch/audiocraft

    - 샘플
https://ai.honu.io/papers/musicgen/

//-----------------------------------------------------------------------------
요구사항 : Python 3.9, PyTorch 2.1.0 필요

- python 3.9 버전 가상 환경 만드는 방법
python 3.9 를 C:\Python\Python39에 설치
> C:\Python\Python39\python -m venv myenv
>  myenv\Scripts\activate
>  python --version

>  python.exe -m pip install --upgrade pip

//-------------------------------------
>  choco install ffmpeg

>  python -m pip install "torch==2.1.0"
>  python -m pip install setuptools wheel

     - 설치
>  git clone https://github.com/facebookresearch/audiocraft
>  cd audiocraft
>  python -m pip install -r requirements.txt

     - 실행
>  python -m demos.musicgen_app --share

     - 웹 브라우저로 접속
http://127.0.0.1:7860


Input Text : blues
Submit 버튼 클릭
모델이 자동으로 다운로드 되고 음악이 생성됨


     - 모델별 음악 생성 시간
facebook/musicgen-small - 1초 생성에 4초
facebook/musicgen-melody - 1초 음악 생성에 20초 걸림, 10초 생성에 3분



//-------------------------------------
< 참고 >
https://lablab.ai/t/audiocraft-tutorial

https://www.youtube.com/watch?v=_OVi1sE1yiA

반응형

'AI' 카테고리의 다른 글

[LLM] stablelm-2-12b-chat 사용법  (0) 2024.04.16
Ollama 사용법  (0) 2024.01.11
AI LLM Benchmark Rank 순위 Leaderboard  (0) 2024.01.09
google cloud vertex ai API로 text 생성 Gemini Pro 사용법  (0) 2023.12.14
철학적인 질문  (0) 2023.11.08
Posted by codens


반응형