You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
Meta开源的AI音乐生成工具,可平替Suno,全网最详细本地部署使用教程,附Colab脚本。
|
|
|
|
|
https://www.youtube.com/watch?v=zObOSul8n6I
|
|
|
|
|
|
|
|
|
|
AudioCraft加强版Magnet,文本到音频AI,可生成各种风格的音乐和声音,开源免费。本地安装详细教程,附Colab一键运行脚本。MusicGen最长可生成2分钟的音乐,Magnet可生成现场生活场景中的各种音效。Meta开源,完全免费。
|
|
|
|
|
|
|
|
|
|
项目地址:https://github.com/facebookresearch/a...
|
|
|
|
|
colab运行
|
|
|
|
|
Magnet
|
|
|
|
|
https://colab.research.google.com/dri...
|
|
|
|
|
MusicGen
|
|
|
|
|
https://colab.research.google.com/dri...
|
|
|
|
|
一、本地安装
|
|
|
|
|
cuda11.8
|
|
|
|
|
python3.9.13 https://www.python.org/
|
|
|
|
|
git工具 https://git-scm.com/
|
|
|
|
|
ffmpeg https://www.gyan.dev/ffmpeg/builds/
|
|
|
|
|
二、命令窗口指令
|
|
|
|
|
git clone https://github.com/facebookresearch/a...
|
|
|
|
|
使用python3.9.13创建虚拟环境
|
|
|
|
|
call venv\scripts\activate.bat
|
|
|
|
|
|
|
|
|
|
pip install -r requirements.txt
|
|
|
|
|
pip uninstall torch torchvision torchaudio
|
|
|
|
|
pip install torch==2.1.0 torchvision==0.16.0 torchaudio==2.1.0 --index-url https://download.pytorch.org/whl/cu118
|
|
|
|
|
pip install xformers==0.0.22.post4 --index-url https://download.pytorch.org/whl/cu118
|
|
|
|
|
pip install gradio==3.39.0 gradio_client==0.3.0
|
|
|
|
|
python -m pip install -e .
|
|
|
|
|
|
|
|
|
|
三、创建运行脚本
|
|
|
|
|
music-run.bat
|
|
|
|
|
|
|
|
|
|
call venv\scripts\activate.bat
|
|
|
|
|
echo start...
|
|
|
|
|
python -m demos.musicgen_app
|
|
|
|
|
pause
|
|
|
|
|
|
|
|
|
|
magnet-run.bat
|
|
|
|
|
|
|
|
|
|
call venv\scripts\activate.bat
|
|
|
|
|
echo start...
|
|
|
|
|
python -m demos.magnet_app
|
|
|
|
|
pause
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
00:00 AudioCraft介绍
|
|
|
|
|
03:46 本地安装
|
|
|
|
|
11:28 Magnet音效生成
|
|
|
|
|
16:36 MusicGen音乐生成
|