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.
KeCheng/文档/生成背景音乐神器—平替Suno.txt

48 lines
1.6 KiB

1 year ago
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音乐生成