NIUBOYI»Home › › 音乐生成 › 中文 | English
微信扫一扫 分享朋友圈

已有 2926 人浏览分享

音乐生成    Meta's open-source AI music generation tool, a viable alternative to Suno, with the most detailed local deployment and usage tutorial on the internet, plus a Colab script included.

2024-4-1 19:43:222926 0


AudioCraft enhanced version Magnet, a text-to-audio AI that can generate music and sounds in various styles, open source and free. Detailed local installation tutorial, with a one-click Colab run script. MusicGen can generate music up to 2 minutes long, and Magnet can generate various sound effects from real-life scenes. Open-sourced by Meta, completely free.

Project address: https://github.com/facebookresearch/audiocraft
Run on Colab
Magnet
https://colab.research.google.co ... 3Zv7u5N?usp=sharing
MusicGen

https://colab.research.google.co ... C5mz?usp=drive_link
I. Local installation

cuda11.8
python3.9.13  https://www.python.org/
git tool  https://git-scm.com/
ffmpeg  https://www.gyan.dev/ffmpeg/builds/
II. Command prompt commands
git clone https://github.com/facebookresearch/audiocraft
Use python3.9.13 to create a virtual environment
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 .

III. Create run scripts
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

  • WeChat Official Account

  • Scan to Visit Mobile Site

QQ|NIUBOYI ( 京ICP备17025393号 )|网站地图

GMT+8, 2026-10-30 19:45 , Processed in 0.044451 second(s), 38 queries .

POWERED BY NIUBOYIAI! 主理人:NIUBOYIAI  点亮哥

Copyright © 2001-2020, NIUBOYI AI.