SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2405.16947 · 2024

Zero-Shot Video Semantic Segmentation based on Pre-Trained Diffusion Models

arXiv · PDF · Open in the Atlas

Code that ran

3 of 3 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 3 failures of our instrument; 0 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.16947.json · badge: /api/ran/2405.16947.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
QianWangX/VidSeg_diffusion canonical (classifier label)
classifier basis: classifier_2025
3 ran · 0 no recorded run
FunctionStatusWhere it lives
get_batch Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
QianWangX/VidSeg_diffusion/scripts/sampling/sd_pipeline_vspw.py
code served (permissive licence) · get_code("1b680bef04344d3d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import math
import torch

torch.manual_seed(0)

# Construct the arguments for get_batch

# keys: list of strings indicating which keys to process
keys = ['txt', 'image']

# value_dict: dictionary containing prompt, negative_prompt, and other values
value_dict = {
    'prompt': 'a beautiful landscape',
    'negative_prompt': 'ugly, blurry',
    'image': torch.randn(2, 4, 3, 3)  # batch_size=2, channels=4, height=3, width=3
}

# N: tuple or list representing batch dimensions (product gives total batch size)
N = (2,)

# T: number of video frames (can be None or an integer)
T = 8

# device: torch device
device = 'cpu'

ARGS = {
    'keys': keys,
    'value_dict': value_dict,
    'N': N,
    'T': T,
    'device': device
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_batch Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
QianWangX/VidSeg_diffusion/scripts/sampling/svd_pipeline_vspw.py
code served (permissive licence) · get_code("7b9d2aae214a5f4b")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import math
import torch
from einops import rearrange, repeat

torch.manual_seed(0)

# Set up device
device = 'cpu'

# Construct value_dict with all possible keys the function might access
value_dict = {
    'fps_id': 30,
    'motion_bucket_id': 127,
    'cond_aug': 0.02,
    'cond_frames': torch.randn(1, 3, 4, 5),  # 1 batch, 3 channels, 4x5 spatial
    'cond_frames_without_noise': torch.randn(1, 3, 4, 5),
    'other_key': torch.randn(2, 4),  # Some other tensor data
}

# Set up keys to retrieve from value_dict
keys = ['fps_id', 'motion_bucket_id', 'cond_aug', 'cond_frames', 'cond_frames_without_noise', 'other_key']

# N is the batch shape tuple
N = (2, 2)  # This will be used with math.prod(N) = 4

# T is the number of video frames (can be None or an integer)
T = 16

ARGS = {
    'keys': keys,
    'value_dict': value_dict,
    'N': N,
    'T': T,
    'device': device,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
einops, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_unique_embedder_keys_from_conditioner Ran
ran; our contract draft was wrong, not the code
QianWangX/VidSeg_diffusion/scripts/sampling/sd_pipeline_vspw.py
code served (permissive licence) · get_code("da7df331dab819db")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

class DummyEmbedder(nn.Module):
    def __init__(self, input_key):
        super().__init__()
        self.input_key = input_key
    
    def forward(self, x):
        return x

class DummyConditioner(nn.Module):
    def __init__(self, embedders):
        super().__init__()
        self.embedders = embedders
    
    def forward(self, x):
        return x

embedder1 = DummyEmbedder("text")
embedder2 = DummyEmbedder("image")
embedder3 = DummyEmbedder("text")

conditioner = DummyConditioner([embedder1, embedder2, embedder3])

ARGS = {
    "conditioner": conditioner
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block

Also present in other papers' code

Of 3 samples lifted from this paper's linked repositories, 3 carry a function identity and 0 do not. Of the 3 distinct functions with an identity, 1 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 1 later) and 2 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
get_unique_embedder_keys_from_conditioner 4 other papers
4 later
2406.15333 (2024-06)
GeoLRM: Geometry-Aware Large Reconstruction Model for High-Quality 3D Gaussian Generation
2412.00733 (2024-12)
Hallo3: Highly Dynamic and Realistic Portrait Image Animation with Video Diffusion Transformer
2412.18597 (2024-12)
DiTCtrl: Exploring Attention Control in Multi-Modal Diffusion Transformer for Tuning-Free Multi-Prompt Longer Video Generation
and 1 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

We introduce the first zero-shot approach for Video Semantic Segmentation (VSS) based on pre-trained diffusion models. A growing research direction attempts to employ diffusion models to perform downstream vision tasks by exploiting their deep understanding of image semantics. Yet, the majority of these approaches have focused on image-related tasks like semantic correspondence and segmentation, with less emphasis on video tasks such as VSS. Ideally, diffusion-based image semantic segmentation approaches can be applied to videos in a frame-by-frame manner. However, we find their performance on videos to be subpar due to the absence of any modeling of temporal information inherent in the video data. To this end, we tackle this problem and introduce a framework tailored for VSS based on pre-trained image and video diffusion models. We propose building a scene context model based on the diffusion features, where the model is autoregressively updated to adapt to scene changes. This context model predicts per-frame coarse segmentation maps that are temporally consistent. To refine these maps further, we propose a correspondence-based refinement strategy that aggregates predictions temporally, resulting in more confident predictions. Finally, we introduce a masked modulation approach to upsample the coarse maps to the full resolution at a high quality. Experiments show that our proposed approach outperforms existing zero-shot image semantic segmentation approaches significantly on various VSS benchmarks without any training or fine-tuning. Moreover, it rivals supervised VSS approaches on the VSPW dataset despite not being explicitly trained for VSS.

For agents

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

get_harvested_code_for_paper("2405.16947")
get_code_for_paper("2405.16947")
have("2405.16947")

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

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

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

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

Connect an agent — have() is free.