SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2405.11913 · CVPR · 2024

Diff-BGM: A Diffusion Model for Video Background Music Generation

Yang Liu, Sizhe Li, Xin Jin, Yiming Qin, Minghang Zheng

arXiv · PDF · Open in the Atlas

Code that ran

8 of 13 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (6 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 6 have no contract verdict; 2 failures of our instrument; 5 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2405.11913.json · badge: /api/ran/2405.11913.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
sizhelee/diff-bgm canonical (classifier label)
classifier basis: census
1 ran · 0 no recorded run
sizhelee/Diff-BGM community
Papers with Code archive
7 ran · 5 no recorded run
FunctionStatusWhere it lives
CrossAttention Ran
ran on a synthesized input · constructed an object; no result was computed
sizhelee/Diff-BGM/diffbgm/stable_diffusion/model/unet.py
pointer only (licence: NONE) · get_code("ecb181d8f481c786")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sizhelee/Diff-BGM when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

DownSample Ran
ran on a synthesized input · constructed an object; no result was computed
sizhelee/Diff-BGM/diffbgm/stable_diffusion/model/unet.py
pointer only (licence: NONE) · get_code("b576ab229d39e332")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sizhelee/Diff-BGM when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

FeedForward Ran
ran on a synthesized input · constructed an object; no result was computed
sizhelee/Diff-BGM/diffbgm/stable_diffusion/model/unet.py
pointer only (licence: NONE) · get_code("43122f1b2e7a25bb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sizhelee/Diff-BGM when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

GeGLU Ran
ran on a synthesized input · constructed an object; no result was computed
sizhelee/Diff-BGM/diffbgm/stable_diffusion/model/unet.py
pointer only (licence: NONE) · get_code("3dee3c857bf38683")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sizhelee/Diff-BGM when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

GroupNorm32 Ran
ran on a synthesized input · constructed an object; no result was computed
sizhelee/Diff-BGM/diffbgm/stable_diffusion/model/unet.py
pointer only (licence: NONE) · get_code("31bf0a331a19cf4b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sizhelee/Diff-BGM when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

UpSample Ran
ran on a synthesized input · constructed an object; no result was computed
sizhelee/Diff-BGM/diffbgm/stable_diffusion/model/unet.py
pointer only (licence: NONE) · get_code("501aecff0cc44374")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sizhelee/Diff-BGM when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

dummy_cond_input Ran
ran; our contract draft was wrong, not the code
sizhelee/diff-bgm/diffbgm/inference_sdf.py
pointer only (licence: NONE) · get_code("35e508b45fd23d2e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sizhelee/diff-bgm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

normalization Ran
ran; our contract draft was wrong, not the code
sizhelee/Diff-BGM/diffbgm/stable_diffusion/model/unet.py
pointer only (licence: NONE) · get_code("874ebc0bd098eb14")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sizhelee/Diff-BGM when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

BasicTransformerBlock Not yet run
unverified (harvested, no recorded run)
sizhelee/Diff-BGM/diffbgm/stable_diffusion/model/unet.py
pointer only (licence: NONE) · get_code("9e853e757414f297")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sizhelee/Diff-BGM when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

ResBlock Not yet run
unverified (harvested, no recorded run)
sizhelee/Diff-BGM/diffbgm/stable_diffusion/model/unet.py
pointer only (licence: NONE) · get_code("dc86d4f1807d75aa")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sizhelee/Diff-BGM when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

SpatialTransformer Not yet run
unverified (harvested, no recorded run)
sizhelee/Diff-BGM/diffbgm/stable_diffusion/model/unet.py
pointer only (licence: NONE) · get_code("807d93291a28f2e7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sizhelee/Diff-BGM when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

TimestepEmbedSequential Not yet run
unverified (harvested, no recorded run)
sizhelee/Diff-BGM/diffbgm/stable_diffusion/model/unet.py
pointer only (licence: NONE) · get_code("324fc9cc3ad487cd")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sizhelee/Diff-BGM when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

UNetModel Not yet run
unverified (harvested, no recorded run)
sizhelee/Diff-BGM/diffbgm/stable_diffusion/model/unet.py
pointer only (licence: NONE) · get_code("ae15fb19407462fb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sizhelee/Diff-BGM when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 13 distinct functions with an identity, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 2 later) and 11 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
normalization
brick of this paper's assembly: helper
32 other papers
26 dated earlier, 6 later · 27 only as an assembly brick
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
2105.05233 (2021-05)
Diffusion Models Beat GANs on Image Synthesis
2209.15264 (2022-09)
Diffusion-based Image Translation using Disentangled Style and Content Representation
and 29 more not named here
GroupNorm32
brick of this paper's assembly: helper
31 other papers
24 dated earlier, 7 later · 29 only as an assembly brick
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
2105.05233 (2021-05)
Diffusion Models Beat GANs on Image Synthesis
2209.15264 (2022-09)
Diffusion-based Image Translation using Disentangled Style and Content Representation
and 28 more not named here

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

When editing a video, a piece of attractive background music is indispensable. However, video background music generation tasks face several challenges, for example, the lack of suitable training datasets, and the difficulties in flexibly controlling the music generation process and sequentially aligning the video and music. In this work, we first propose a high-quality music-video dataset BGM909 with detailed annotation and shot detection to provide multimodal information about the video and music. We then present evaluation metrics to assess music quality, including music diversity and alignment between music and video with retrieval precision metrics. Finally, we propose the Diff-BGM framework to automatically generate the background music for a given video, which uses different signals to control different aspects of the music during the generation process, i.e., uses dynamic video features to control music rhythm and semantic features to control the melody and atmosphere. We propose to align the video and music sequentially by introducing a segment-aware crossattention layer. Experiments verify the effectiveness of our proposed method. The code and models are available at https://github.com/sizhelee/Diff-BGM . "a large plume of smoke coming from an open container" Captions Videos Videos with BGM k Melody k Rhythm 𝑡𝑡 𝑁𝑁 𝑡𝑡 𝑖𝑖 𝑡𝑡 0

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2405.11913")
get_code_for_paper("2405.11913")
have("2405.11913")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2405.11913.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2405.11913.svg)](https://syntology.ai/paper/2405.11913)

Connect an agent — have() is free.