用分层扩散模型让视频生成音乐更合拍,关键在显式节奏建模。
Diff-V2M: A Hierarchical Conditional Diffusion Model with Explicit Rhythmic Modeling for Video-to-Music Generation
- 分层交叉注意力融合情绪、语义与节奏特征
- 低分辨率节拍检测图比其他信号更有效建模节奏
- 适合做视频配乐或跨模态创作的开发者
视频到音乐(V2M)生成旨在创作与视觉内容匹配的音乐。现有方法面临两大挑战:缺乏显式节奏建模导致音视频时间对齐不佳;多源视觉特征的有效融合仍不理想。为此,我们提出Diff-V2M,一种基于分层条件扩散模型的通用V2M框架,包含视觉特征提取与条件音乐生成两部分。针对节奏建模,我们评估了低分辨率梅尔频谱图、节拍图和节拍检测函数(ODF),并设计了直接从视频推断节奏的预测器。为保证上下文与情感连贯性,还提取了语义与情感特征。所有特征通过分层交叉注意力机制输入生成器:第一层情感特征决定音乐情感基调,第二层融合语义与节奏特征。为提升特征融合效果,引入时间步感知融合策略,如特征线性调制(FiLM)与加权融合,使模型在扩散过程中动态平衡语义与节奏线索。大量实验表明,低分辨率ODF是更优的节奏信号,且Diff-V2M在域内与域外数据集上均超越现有模型,客观指标与主观评价均达当前最优。演示与代码见https://Tayjsl97.github.io/Diff-V2M-Demo/
原文摘要 · Abstract (English)
Video-to-music (V2M) generation aims to create music that aligns with visual content. However, two main challenges persist in existing methods: (1) the lack of explicit rhythm modeling hinders audiovisual temporal alignments; (2) effectively integrating various visual features to condition music generation remains non-trivial. To address these issues, we propose Diff-V2M, a general V2M framework based on a hierarchical conditional diffusion model, comprising two core components: visual feature extraction and conditional music generation. For rhythm modeling, we begin by evaluating several rhythmic representations, including low-resolution mel-spectrograms, tempograms, and onset detection functions (ODF), and devise a rhythmic predictor to infer them directly from videos. To ensure contextual and affective coherence, we also extract semantic and emotional features. All features are incorporated into the generator via a hierarchical cross-attention mechanism, where emotional features shape the affective tone via the first layer, while semantic and rhythmic features are fused in the second cross-attention layer. To enhance feature integration, we introduce timestep-aware fusion strategies, including feature-wise linear modulation (FiLM) and weighted fusion, allowing the model to adaptively balance semantic and rhythmic cues throughout the diffusion process. Extensive experiments identify low-resolution ODF as a more effective signal for modeling musical rhythm and demonstrate that Diff-V2M outperforms existing models on both in-domain and out-of-domain datasets, achieving state-of-the-art performance in terms of objective metrics and subjective comparisons. Demo and code are available at https://Tayjsl97.github.io/Diff-V2M-Demo/.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。