技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
mmaudio【数据与研究】Route MMAudio video-to-audio, text-to-audio, data preparation, CUDA training, and evaluation workflows.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this repo skill when a task involves MMAudio, the PyTorch project for synchronized audio generation from video and/or text. It is an operating guide for future agents: it distills the repository's install, model assets, CLI/API, training, data-preparation, and evaluation behavior without requiring the agent to reopen the original source tree for normal use.
scripts/check_mmaudio_env.py for a safe
import/backend/config sanity check. It does not download weights or run a
model.references/repo-provenance.md before
deciding whether this skill is stale for a newer checkout.| User intent | Read this |
|---|---|
Generate audio for one prompt/video, build a demo.py command, use Gradio, or call mmaudio.eval_utils.generate | sub-skills/inference/SKILL.md |
| Partition audio, validate captions/clip manifests, plan CLIP/Synchformer/VAE feature extraction, or inspect TensorDict memmap schemas | sub-skills/data-preparation/SKILL.md |
| Launch or debug DDP training, bounded smoke runs, checkpoint/weights resume, EMA synthesis, or Hydra training overrides | sub-skills/training/SKILL.md |
| Run batched generation for AudioCaps/VGGSound/MovieGen-style evaluation data or compute onset metrics | sub-skills/evaluation/SKILL.md |
references/model-assets.md lists MMAudio model
variants, required checkpoint filenames, download/checksum behavior, sample
rates, and license caveats.references/configuration.md summarizes shared
Hydra conventions, sequence-length facts, default paths, and override style.references/troubleshooting.md covers
cross-cutting install/import, CUDA, download, media, and dependency failures.references/repo-routing-metadata.json
is structured metadata for managed repo-skill routing.MMAudio is a Python package named mmaudio and requires Python 3.9+. The
repository documentation recommends a Miniforge/Conda-style environment on
Ubuntu. Install a CUDA-capable PyTorch stack first when GPU workflows are in
scope, then install the package in editable mode:
python -m pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118 --upgrade
python -m pip install -e <MMAudio checkout>
The package metadata declares dependencies such as torchcodec,
huggingface_hub, hydra-core, gradio, open_clip_torch, av, timm,
tensordict, librosa, torchdiffeq, and nitrous-ema. Training and the
built-in metric/sample path also depend on the external av_bench package from
the MMAudio authors' av-benchmark project.
| Variant | Mode | Typical use |
|---|---|---|
small_16k | 16 kHz | Lower sample rate, smaller network, training/evaluation examples. |
small_44k | 44.1 kHz | Smaller high-sample-rate generation. |
medium_44k | 44.1 kHz | Larger high-sample-rate model. |
large_44k | 44.1 kHz | Heavy high-sample-rate model. |
large_44k_v2 | 44.1 kHz | Recommended default for general inference. |
Every inference/evaluation variant needs a flow-prediction checkpoint, a VAE, and the Synchformer checkpoint; 16 kHz additionally uses the BigVGAN vocoder file. See the model-assets reference before downloading or debugging weights.