SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2412.09492 · 2024

Video Seal: Open and Efficient Video Watermarking

arXiv · PDF · Open in the Atlas

Code that ran

8 of 9 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; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 7 failures of our instrument; 1 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/2412.09492.json · badge: /api/ran/2412.09492.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
facebookresearch/videoseal canonical (classifier label)
classifier basis: census
8 ran · 1 no recorded run
FunctionStatusWhere it lives
adopt_weight Ran
ran, honoured the contract we drafted
facebookresearch/videoseal/videoseal/losses/videosealloss.py
code served (permissive licence) · get_code("9424bc290492af88")
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 float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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)

# Based on the function, it takes:
# - weight: a numeric value that gets compared and potentially reassigned
# - global_step: an integer used in comparison
# - threshold: an integer for comparison (default 0)
# - value: a numeric value to assign if condition is met (default 0.0)

ARGS = {
    "weight": 0.5,
    "global_step": 5,
    "threshold": 10,
    "value": 0.0
}
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 float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
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
build_loss Ran
ran; our contract draft was wrong, not the code
facebookresearch/videoseal/videoseal/losses/perceptual.py
code served (permissive licence) · get_code("b61ecb572a0c1a2b")
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 MSELoss. The image it ran in was not recorded. If your copy returns the same type 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 NoneLoss(nn.Module):
    def forward(self, x, y):
        return torch.zeros(1, requires_grad=True)

class YUVLoss(nn.Module):
    def forward(self, x, y):
        return torch.tensor(0.0, requires_grad=True)

class FocalFrequencyLoss(nn.Module):
    def forward(self, x, y):
        return torch.tensor(0.0, requires_grad=True)

class SSIM(nn.Module):
    def forward(self, x, y):
        return torch.tensor(0.0, requires_grad=True)

class MSSSIM(nn.Module):
    def forward(self, x, y):
        return torch.tensor(0.0, requires_grad=True)

class JNDLoss(nn.Module):
    def __init__(self, loss_type=0):
        super().__init__()
        self.loss_type = loss_type
    
    def forward(self, x, y):
        return torch.tensor(0.0, requires_grad=True)

class DISTS(nn.Module):
    def __init__(self, weights_path):
        super().__init__()
        self.weights_path = weights_path
    
    def forward(self, x, y):
        return torch.tensor(0.0, requires_grad=True)

class WatsonDistanceVgg(nn.Module):
    def __init__(self, reduction='none'):
        super().__init__()
        self.reduction = reduction
    
    def forward(self, x, y):
        return torch.tensor(0.0, requires_grad=True)

class WatsonDistanceFft(nn.Module):
    def __init__(self, reduction='none'):
        super().__init__()
        self.reduction = reduction
    
    def forward(self, x, y):
        return torch.tensor(0.0, requires_grad=True)

class ColorWrapper(nn.Module):
    def __init__(self, model_class, args, kwargs):
        super().__init__()
        self.model = model_class(*args, **kwargs)
    
    def forward(self, x, y):
        return self.model(x, y)

class MockLPIPS(nn.Module):
    def __init__(self, net='vgg'):
        super().__init__()
        self.net = net
    
    def forward(self, x, y):
        return torch.tensor(0.0, requires_grad=True)

def mock_lpips_constructor(net='vgg'):
    return MockLPIPS(net=net).eval()

loss_weights_paths = {
    'dists': '/path/to/loss_weights/dists_ckpt.pth',
    'watson_vgg': '/path/to/loss_weights/rgb_watson_vgg_trial0.pth',
    'watson_dft': '/path/to/loss_weights/rgb_watson_fft_trial0.pth'
}

def build_loss(loss_name):
    if loss_name == 'none':
        return NoneLoss()
    elif loss_name == 'lpips':
        return mock_lpips_constructor(net='vgg')
    elif loss_name == 'mse':
        return nn.MSELoss()
    elif loss_name == 'yuv':
        return YUVLoss()
    elif loss_name == 'focal':
        return FocalFrequencyLoss()
    elif loss_name == 'ssim':
        return SSIM()
    elif loss_name == 'msssim':
        return MSSSIM()
    elif loss_name == 'jnd':
        return JNDLoss(loss_type=0)
    elif loss_name == 'jnd2':
        return JNDLoss(loss_type=2)
    elif loss_name == 'dists':
        return DISTS(loss_weights_paths['dists']).eval()
    elif loss_name == 'watson_vgg':
        model = WatsonDistanceVgg(reduction='none')
        return model.eval()
    elif loss_name == 'watson_dft':
        model = ColorWrapper(WatsonDistanceFft, (), {'reduction': 'none'})
        return model.eval()
    else:
        raise ValueError(f'Loss type {loss_name} not supported.')

ARGS = {
    'loss_name': 'mse'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
lpips, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type MSELoss — a MSELoss output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a MSELoss output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
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
gaussian_filter Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
facebookresearch/videoseal/videoseal/losses/ssim.py
code served (permissive licence) · get_code("4f04a1ea76a14dc9")
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 Tensor, ndim 4, dtype family float, shape (2, 3, 2, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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.functional as F

torch.manual_seed(0)

# For a 4D input (batch, channels, height, width), we need a 4D window
# The window should have shape (out_channels, in_channels/groups, 1, kernel_size)
# Since groups=C (number of channels), out_channels must equal C
# For depthwise convolution: (C, 1, 1, kernel_size)

# Create a small 4D input tensor: (batch=2, channels=3, height=4, width=5)
input_4d = torch.randn(2, 3, 4, 5)

# Create a 1D Gaussian kernel and reshape for 4D convolution
# Shape should be (out_channels=3, in_channels/groups=1, 1, kernel_size=3)
# The window is used with transpose(2 + i, -1) so needs proper shape
kernel_1d = torch.tensor([0.25, 0.5, 0.25], dtype=torch.float32)
win_4d = kernel_1d.view(1, 1, 1, -1).repeat(3, 1, 1, 1)

ARGS = {
    "input": input_4d,
    "win": win_4d,
}
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 Tensor, ndim 4, dtype family float, shape (2, 3, 2, 3) — shape (2, 3, 2, 3) as a later run recorded it
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
hinge_d_loss Ran
ran; our contract draft was wrong, not the code
facebookresearch/videoseal/videoseal/losses/videosealloss.py
code served (permissive licence) · get_code("c2e6030864843901")
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 Tensor, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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.functional as F

torch.manual_seed(0)

# Create small logits tensors for discriminator output
# logits_real: discriminator output for real samples
logits_real = torch.randn(2, 4)

# logits_fake: discriminator output for fake samples
logits_fake = torch.randn(2, 4)

ARGS = {
    "logits_real": logits_real,
    "logits_fake": logits_fake,
}
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 Tensor, ndim 0, dtype family float, shape () — shape () as a later run recorded it
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
ms_ssim Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
facebookresearch/videoseal/videoseal/losses/ssim.py
code served (permissive licence) · get_code("3ba1a73724675e43")
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 Tensor, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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.functional as F

torch.manual_seed(0)

# Create two batch of small 4D image tensors (N, C, H, W)
# Using distinct sizes: batch=2, channels=3, height=256, width=256
X = torch.randn(2, 3, 256, 256)
Y = torch.randn(2, 3, 256, 256)

# Create a 1D Gaussian kernel for testing
def _fspecial_gauss_1d(size: int, sigma: float):
    coords = torch.arange(size, dtype=torch.float)
    coords -= size // 2
    g = torch.exp(-coords ** 2 / (2 * sigma ** 2))
    g /= g.sum()
    return g.unsqueeze(0).unsqueeze(0)

win_kernel = _fspecial_gauss_1d(11, 1.5)

ARGS = {
    'X': X,
    'Y': Y,
    'data_range': 1.0,
    'size_average': True,
    'win_size': 11,
    'win_sigma': 1.5,
    'win': None,
    'weights': None,
    'K': (0.01, 0.03)
}
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 Tensor, ndim 0, dtype family float, shape () — shape () as a later run recorded it
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
normalize_tensor Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
facebookresearch/videoseal/videoseal/losses/watson_vgg.py
code served (permissive licence) · get_code("0086e76caac76ff6")
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 Tensor, ndim 4, dtype family float, shape (2, 4, 3, 5) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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

torch.manual_seed(0)

# The function takes a single parameter 't' which is a tensor
# It expects shape (N, C, H, W) based on the unpacking in the function
# N=batch, C=channels, H=height, W=width
# Using distinct sizes: N=2, C=4, H=3, W=5

t = torch.randn(2, 4, 3, 5)

ARGS = {
    "t": t
}
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 Tensor, ndim 4, dtype family float, shape (2, 4, 3, 5) — shape (2, 4, 3, 5) as a later run recorded it
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
prepare_image Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
facebookresearch/videoseal/videoseal/losses/dists.py
code served (permissive licence) · get_code("913d396ed85be58b")
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 Tensor, ndim 4, dtype family float, shape (1, 3, 341, 256) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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
from PIL import Image
import numpy as np

torch.manual_seed(0)

# Create a small PIL Image with dimensions larger than 256
# to test the resize logic
image_array = np.random.randint(0, 256, (512, 384, 3), dtype=np.uint8)
pil_image = Image.fromarray(image_array)

ARGS = {
    "image": pil_image,
    "resize": True,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy, torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 4, dtype family float, shape (1, 3, 341, 256) — shape (1, 3, 341, 256) as a later run recorded it
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
ssim Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
facebookresearch/videoseal/videoseal/losses/ssim.py
code served (permissive licence) · get_code("e867dacbd4ba1d08")
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 Tensor, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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)

# Create small batch of images (N=2, C=3, H=4, W=4)
X = torch.randn(2, 3, 4, 4)
Y = torch.randn(2, 3, 4, 4)

ARGS = {
    'X': X,
    'Y': Y,
    'data_range': 1.0,
    'size_average': True,
    'win_size': 11,
    'win_sigma': 1.5,
    'win': None,
    'K': (0.01, 0.03),
    'nonnegative_ssim': False,
}
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 Tensor, ndim 0, dtype family float, shape () — shape () as a later run recorded it
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
softmax Not yet run
unverified (harvested, no recorded run)
facebookresearch/videoseal/videoseal/losses/watson_fft.py
pointer only (licence: MIT); the stored copy get_code serves, from steffenczolbe/perceptualsimilarity, is pointer only (licence: NONE) · get_code("cc287dc402b9202b")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from steffenczolbe/perceptualsimilarity, and GitHub detected no licence in that repository 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 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 6 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 2 the same month, 3 later) and 3 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
hinge_d_loss 15 other papers
11 dated earlier, 2 the same month, 2 later
2012.09841 (2020-12)
Taming Transformers for High-Resolution Image Synthesis
2112.00384 (2021-12)
Exploration into Translation-Equivariant Image Quantization
2211.13221 (2022-11)
Latent Video Diffusion Models for High-Fidelity Long Video Generation
and 12 more not named here
adopt_weight 9 other papers
7 dated earlier, 1 the same month, 1 later
2004.13166 (2020-04)
A Disentangling Invertible Interpretation Network for Explaining Latent Representations
2012.09841 (2020-12)
Taming Transformers for High-Resolution Image Synthesis
2112.00384 (2021-12)
Exploration into Translation-Equivariant Image Quantization
and 6 more not named here
softmax 3 other papers
3 dated earlier
2006.15057 (2020-06)
A Loss Function for Generative Neural Networks Based on Watson's Perceptual Model
2311.04071 (2023-11)
Energy-Calibrated VAE with Test Time Free Lunch
2401.04247 (2024-01)
Attack-Resilient Image Watermarking Using Stable Diffusion
normalize_tensor 2 other papers
2 dated earlier
2311.04071 (2023-11)
Energy-Calibrated VAE with Test Time Free Lunch
2401.04247 (2024-01)
Attack-Resilient Image Watermarking Using Stable Diffusion
prepare_image 1 other paper
1 dated earlier
2004.07728 (2020-04)
Image Quality Assessment: Unifying Structure and Texture Similarity
ssim 1 other paper
1 later
2510.20762 (2025-10)
MEIcoder: Decoding Visual Stimuli from Neural Activity by Leveraging Most Exciting Inputs

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

The proliferation of AI-generated content and sophisticated video editing tools has made it both important and challenging to moderate digital platforms. Video watermarking addresses these challenges by embedding imperceptible signals into videos, allowing for identification. However, the rare open tools and methods often fall short on efficiency, robustness, and flexibility. To reduce these gaps, this paper introduces Video Seal, a comprehensive framework for neural video watermarking and a competitive open-sourced model. Our approach jointly trains an embedder and an extractor, while ensuring the watermark robustness by applying transformations in-between, e.g., video codecs. This training is multistage and includes image pre-training, hybrid post-training and extractor fine-tuning. We also introduce temporal watermark propagation, a technique to convert any image watermarking model to an efficient video watermarking model without the need to watermark every high-resolution frame. We present experimental results demonstrating the effectiveness of the approach in terms of speed, imperceptibility, and robustness. Video Seal achieves higher robustness compared to strong baselines especially under challenging distortions combining geometric transformations and video compression. Additionally, we provide new insights such as the impact of video compression during training, and how to compare methods operating on different payloads. Contributions in this work - including the codebase, models, and a public demo - are open-sourced under permissive licenses to foster further research and development in the field.

For agents

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

get_harvested_code_for_paper("2412.09492")
get_code_for_paper("2412.09492")
have("2412.09492")

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

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

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

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

Connect an agent — have() is free.