SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2504.12739 · NeurIPS · 2025

Mask Image Watermarking

Jiwei Li, Qing Guo, Jie Zhang, Tianwei Zhang, Nils Lukas, Han Qiu, Runyi Hu, Shiqian Zhao

arXiv · PDF · Open in the Atlas

Code that ran

12 of 23 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (5 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 7 have no contract verdict; 5 failures of our instrument; 11 no recorded run), measured 2026-11-24; 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/2504.12739.json · badge: /api/ran/2504.12739.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
hurunyi/maskwm canonical (classifier label)
classifier basis: classifier_2025
3 ran · 0 no recorded run
hurunyi/maskmark marked official in Papers with Code
Papers with Code archive
9 ran · 11 no recorded run
FunctionStatusWhere it lives
ConvNormRelu Ran
ran on a synthesized input · constructed an object; no result was computed
hurunyi/maskmark/models/Network.py
code served (permissive licence) · get_code("1f06faef62e6eba2")
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 an instance of its own class, ConvNormRelu: the run constructed the object and did not call it, so no result was computed. 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)

# Build arguments for ConvNormRelu
channels_in = 3
channels_out = 16
normalization = nn.BatchNorm2d
stride = 1

ARGS = {
    "channels_in": channels_in,
    "channels_out": channels_out,
    "normalization": normalization,
    "stride": stride,
}
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 ConvNormRelu — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a ConvNormRelu 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
DoubleConv Ran
ran on a synthesized input · constructed an object; no result was computed
hurunyi/maskmark/models/Network.py
code served (permissive licence) · get_code("e066873b6a3c1c9c")
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 an instance of its own class, DoubleConv: the run constructed the object and did not call it, so no result was computed. 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)

ARGS = {
    'in_channels': 3,
    'out_channels': 16,
    'mid_channels': 8,
    'norm_type': 'batch'
}
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 DoubleConv — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a DoubleConv 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
Down Ran
ran on a synthesized input · constructed an object; no result was computed
hurunyi/maskmark/models/Network.py
code served (permissive licence) · get_code("29d6c8dc33aa60c4")
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 an instance of its own class, Down: the run constructed the object and did not call it, so no result was computed. 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)

def GroupNorm32(channels):
    for num_groups in [32, 16, 8, 4, 2, 1]:
        if channels % num_groups == 0:
            return nn.GroupNorm(num_groups=num_groups, num_channels=channels, eps=1e-06, affine=True)
    raise ValueError('Invalid number of channels for GroupNorm!')

class DoubleConv(nn.Module):
    def __init__(self, in_channels, out_channels, mid_channels=None, norm_type='batch'):
        super().__init__()
        if not mid_channels:
            mid_channels = out_channels
        if norm_type == 'batch':
            normalization = nn.BatchNorm2d
        elif norm_type == 'instance':
            normalization = nn.InstanceNorm2d
        elif norm_type == 'group':
            normalization = GroupNorm32
        else:
            raise NotImplementedError
        self.double_conv = nn.Sequential(
            nn.Conv2d(in_channels, mid_channels, kernel_size=3, padding=1, bias=False),
            normalization(mid_channels),
            nn.ReLU(inplace=True),
            nn.Conv2d(mid_channels, out_channels, kernel_size=3, padding=1, bias=False),
            normalization(out_channels),
            nn.ReLU(inplace=True)
        )

    def forward(self, x):
        return self.double_conv(x)

class Down(nn.Module):
    def __init__(self, in_channels, out_channels, norm_type='batch'):
        super().__init__()
        self.maxpool_conv = nn.Sequential(
            nn.MaxPool2d(2),
            DoubleConv(in_channels, out_channels, norm_type=norm_type)
        )

    def forward(self, x):
        return self.maxpool_conv(x)

ARGS = {
    'in_channels': 3,
    'out_channels': 16,
    'norm_type': 'batch'
}
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 Down — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a Down 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
GroupNorm32 Ran
ran; our contract draft was wrong, not the code
hurunyi/maskmark/models/Network.py
code served (permissive licence) · get_code("970af1a11b88823e")
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 GroupNorm. 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)

# GroupNorm32 takes a single parameter: channels (int)
# The function tries different num_groups values and returns nn.GroupNorm
# We need to provide a valid number of channels

ARGS = {
    "channels": 32
}
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 GroupNorm — a GroupNorm output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a GroupNorm 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
REBNCONV Ran
ran on a synthesized input
hurunyi/maskmark/models/Network.py
code served (permissive licence) · get_code("12201d6ffa2f0b4d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 4, 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

# INIT_ARGS for REBNCONV.__init__(in_ch=3, out_ch=3, dirate=1)
INIT_ARGS = {
    'in_ch': 8,
    'out_ch': 16,
    'dirate': 2
}

# ARGS for forward(x)
# Input tensor must have shape (batch, in_ch, height, width)
ARGS = {
    'x': torch.randn(2, 8, 12, 10)
}
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
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 — no output shape is stated: observe_signature.py observed this class with its constructor sizes canonicalised where it could, which the node does not record, so its shape is not stated as this setup block's
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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
RSU4 Ran
ran on a synthesized input
hurunyi/maskmark/models/Network.py
code served (permissive licence) · get_code("5f68a0c61f8c216a")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 4, 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
import torch.nn.functional as F

class REBNCONV(nn.Module):

    def __init__(self, in_ch=3, out_ch=3, dirate=1):
        super(REBNCONV, self).__init__()
        self.conv_s1 = nn.Conv2d(in_ch, out_ch, 3, padding=1 * dirate, dilation=1 * dirate)
        self.bn_s1 = nn.GroupNorm(num_groups=8, num_channels=out_ch, eps=1e-06, affine=True)
        self.relu_s1 = nn.ReLU(inplace=True)

    def forward(self, x):
        hx = x
        xout = self.relu_s1(self.bn_s1(self.conv_s1(hx)))
        return xout

def _upsample_like(src, tar):
    src = F.upsample(src, size=tar.shape[2:], mode='bilinear')
    return src

class RSU4(nn.Module):

    def __init__(self, in_ch=3, mid_ch=12, out_ch=3):
        super(RSU4, self).__init__()
        self.rebnconvin = REBNCONV(in_ch, out_ch, dirate=1)
        self.rebnconv1 = REBNCONV(out_ch, mid_ch, dirate=1)
        self.pool1 = nn.MaxPool2d(2, stride=2, ceil_mode=True)
        self.rebnconv2 = REBNCONV(mid_ch, mid_ch, dirate=1)
        self.pool2 = nn.MaxPool2d(2, stride=2, ceil_mode=True)
        self.rebnconv3 = REBNCONV(mid_ch, mid_ch, dirate=1)
        self.rebnconv4 = REBNCONV(mid_ch, mid_ch, dirate=2)
        self.rebnconv3d = REBNCONV(mid_ch * 2, mid_ch, dirate=1)
        self.rebnconv2d = REBNCONV(mid_ch * 2, mid_ch, dirate=1)
        self.rebnconv1d = REBNCONV(mid_ch * 2, out_ch, dirate=1)

    def forward(self, x):
        hx = x
        hxin = self.rebnconvin(hx)
        hx1 = self.rebnconv1(hxin)
        hx = self.pool1(hx1)
        hx2 = self.rebnconv2(hx)
        hx = self.pool2(hx2)
        hx3 = self.rebnconv3(hx)
        hx4 = self.rebnconv4(hx3)
        hx3d = self.rebnconv3d(torch.cat((hx4, hx3), 1))
        hx3dup = _upsample_like(hx3d, hx2)
        hx2d = self.rebnconv2d(torch.cat((hx3dup, hx2), 1))
        hx2dup = _upsample_like(hx2d, hx1)
        hx1d = self.rebnconv1d(torch.cat((hx2dup, hx1), 1))
        return hx1d + hxin

INIT_ARGS = {
    'in_ch': 3,
    'mid_ch': 8,
    'out_ch': 8
}

ARGS = {
    'x': torch.randn(2, 3, 32, 32)
}
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
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 — no output shape is stated: observe_signature.py observed this class with its constructor sizes canonicalised where it could, which the node does not record, so its shape is not stated as this setup block's
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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
UNet Ran
ran on a synthesized input · constructed an object; no result was computed
hurunyi/maskmark/models/Network.py
code served (permissive licence) · get_code("0452d2e25645e27d")
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 an instance of its own class, UNet: the run constructed the object and did not call it, so no result was computed. 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)

ARGS = {
    'n_channels': 4,
    'n_classes': 3,
    'bilinear': False,
    'norm_type': 'batch',
}
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 UNet — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a UNet 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
Up Ran
ran on a synthesized input · constructed an object; no result was computed
hurunyi/maskmark/models/Network.py
code served (permissive licence) · get_code("65f0d74b6eff8968")
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 an instance of its own class, Up: the run constructed the object and did not call it, so no result was computed. 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)

# Define GroupNorm32 helper function
def GroupNorm32(channels):
    for num_groups in [32, 16, 8, 4, 2, 1]:
        if channels % num_groups == 0:
            return nn.GroupNorm(num_groups=num_groups, num_channels=channels, eps=1e-06, affine=True)
    raise ValueError('Invalid number of channels for GroupNorm!')

# Define DoubleConv for use in Up
class DoubleConv(nn.Module):
    def __init__(self, in_channels, out_channels, mid_channels=None, norm_type='batch'):
        super().__init__()
        if not mid_channels:
            mid_channels = out_channels
        if norm_type == 'batch':
            normalization = nn.BatchNorm2d
        elif norm_type == 'instance':
            normalization = nn.InstanceNorm2d
        elif norm_type == 'group':
            normalization = GroupNorm32
        else:
            raise NotImplementedError
        self.double_conv = nn.Sequential(
            nn.Conv2d(in_channels, mid_channels, kernel_size=3, padding=1, bias=False),
            normalization(mid_channels),
            nn.ReLU(inplace=True),
            nn.Conv2d(mid_channels, out_channels, kernel_size=3, padding=1, bias=False),
            normalization(out_channels),
            nn.ReLU(inplace=True)
        )

    def forward(self, x):
        return self.double_conv(x)

# Define Up class
class Up(nn.Module):
    def __init__(self, in_channels, out_channels, bilinear=True, norm_type='batch'):
        super().__init__()
        if bilinear:
            self.up = nn.Upsample(scale_factor=2, mode='bilinear', align_corners=True)
            self.conv = DoubleConv(in_channels, out_channels, in_channels // 2, norm_type=norm_type)
        else:
            self.up = nn.ConvTranspose2d(in_channels, in_channels // 2, kernel_size=2, stride=2)
            self.conv = DoubleConv(in_channels, out_channels, norm_type=norm_type)

    def forward(self, x1, x2):
        x1 = self.up(x1)
        diffY = x2.size()[2] - x1.size()[2]
        diffX = x2.size()[3] - x1.size()[3]
        x1 = torch.nn.functional.pad(x1, [diffX // 2, diffX - diffX // 2, diffY // 2, diffY - diffY // 2])
        x = torch.cat([x2, x1], dim=1)
        return self.conv(x)

# Create valid arguments for Up.__init__
ARGS = {
    'in_channels': 8,
    'out_channels': 4,
    'bilinear': True,
    'norm_type': 'batch'
}
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 Up — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a Up 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
calculate_iou_score Ran
ran; our contract draft was wrong, not the code
hurunyi/maskwm/inference.py
code served (permissive licence) · get_code("a0b11efc95c79c73")
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) 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 torch

torch.manual_seed(0)

# Create small binary prediction and target tensors
# preds and targets should be binary (0 or 1) tensors
preds = torch.tensor([
    [1, 0, 1, 0],
    [0, 1, 1, 0]
], dtype=torch.float32)

targets = torch.tensor([
    [1, 0, 0, 1],
    [0, 1, 1, 1]
], dtype=torch.float32)

ARGS = {
    "preds": preds,
    "targets": targets
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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
decoded_message_accuracy Ran
ran; our contract draft was wrong, not the code
hurunyi/maskwm/inference.py
code served (permissive licence) · get_code("2978a72a8435838d")
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) 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

torch.manual_seed(0)

# Create small tensors with shape (2, 4) - batch size 2, dimension 4
# These represent binary probabilities that will be thresholded at 0.5
message = torch.rand(2, 4)
decoded_message = torch.rand(2, 4)

ARGS = {
    "message": message,
    "decoded_message": decoded_message,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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
denormalize Ran
ran; our contract draft was wrong, not the code
hurunyi/maskwm/inference.py
code served (permissive licence) · get_code("2d094cdb029a3669")
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) and returned Tensor, ndim 4, dtype family float, shape (2, 3, 4, 4) 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 denormalize takes images tensor and applies denormalization
# It expects a tensor that supports division, addition, and clamp operations
# Typical normalized images are in range [-1, 1], and this converts to [0, 1]

# Create a small normalized image tensor in range [-1, 1]
# Shape: (batch_size=2, channels=3, height=4, width=4)
images = torch.randn(2, 3, 4, 4) * 0.5  # Scale to roughly [-1, 1] range

ARGS = {
    "images": images
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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, 4, 4) — shape (2, 3, 4, 4) 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 Ran
ran; our contract draft was wrong, not the code
hurunyi/maskmark/models/Network.py
code served (permissive licence) · get_code("37f8b080682479a1")
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, 4, 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)

# Create a small tensor with shape (2, 3, 4, 5) representing a batch of 2 images
# with 3 channels, height 4, and width 5
images = torch.rand(2, 3, 4, 5)

ARGS = {
    "images": images
}
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, 4, 5) — shape (2, 3, 4, 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
Decoder Not yet run
unverified (harvested, no recorded run)
hurunyi/maskmark/models/Network.py
code served (permissive licence) · get_code("8d74faed004f7cc6")
How it ran

no invocation recorded.

Encoder Not yet run
unverified (harvested, no recorded run)
hurunyi/maskmark/models/Network.py
code served (permissive licence) · get_code("073c41c1803af624")
How it ran

no invocation recorded.

JND Not yet run
unverified (harvested, no recorded run)
hurunyi/maskmark/models/Network.py
code served (permissive licence) · get_code("cda4a32b64c7392c")
How it ran

no invocation recorded.

MaskWM Not yet run
unverified (harvested, no recorded run)
hurunyi/maskmark/models/Network.py
code served (permissive licence) · get_code("b653f0e6310a39f5")
How it ran

no invocation recorded.

Noise Not yet run
unverified (harvested, no recorded run)
hurunyi/maskmark/models/Network.py
code served (permissive licence) · get_code("942910e44eb17b71")
How it ran

no invocation recorded.

RSU4F Not yet run
unverified (harvested, no recorded run)
hurunyi/maskmark/models/Network.py
code served (permissive licence) · get_code("7195700248a991a6")
How it ran

no invocation recorded.

RSU5 Not yet run
unverified (harvested, no recorded run)
hurunyi/maskmark/models/Network.py
code served (permissive licence) · get_code("50ca52394f8531f9")
How it ran

no invocation recorded.

RSU6 Not yet run
unverified (harvested, no recorded run)
hurunyi/maskmark/models/Network.py
code served (permissive licence) · get_code("b0f104c5c1a11652")
How it ran

no invocation recorded.

RSU7 Not yet run
unverified (harvested, no recorded run)
hurunyi/maskmark/models/Network.py
code served (permissive licence) · get_code("7958e1bb9c073000")
How it ran

no invocation recorded.

U2NETP Not yet run
unverified (harvested, no recorded run)
hurunyi/maskmark/models/Network.py
code served (permissive licence) · get_code("d4c76d061ef5a0e0")
How it ran

no invocation recorded.

WatermarkModel Not yet run
unverified (harvested, no recorded run)
hurunyi/maskmark/models/Network.py
code served (permissive licence) · get_code("c7987731c99f5e9c")
How it ran

no invocation recorded.

Also present in other papers' code

Of 23 samples lifted from this paper's linked repositories, 23 carry a function identity and 0 do not. Of the 23 distinct functions with an identity, 10 are also present in other papers whose code we hold (8 with at least one paper dated earlier, 0 the same month, 2 later) and 13 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
DoubleConv
brick of this paper's assembly: helper
1 other paper
1 dated earlier
2402.12688 (2024-02)
Robust-Wide: Robust Watermarking against Instruction-driven Image Editing
Down
brick of this paper's assembly: helper
1 other paper
1 dated earlier
2402.12688 (2024-02)
Robust-Wide: Robust Watermarking against Instruction-driven Image Editing
RSU4
brick of this paper's assembly: helper
1 other paper
1 dated earlier
2203.03041 (2022-03)
Highly Accurate Dichotomous Image Segmentation
RSU4F
brick of this paper's assembly: helper
1 other paper
1 dated earlier
2203.03041 (2022-03)
Highly Accurate Dichotomous Image Segmentation
RSU5
brick of this paper's assembly: helper
1 other paper
1 dated earlier
2203.03041 (2022-03)
Highly Accurate Dichotomous Image Segmentation
RSU6
brick of this paper's assembly: helper
1 other paper
1 dated earlier
2203.03041 (2022-03)
Highly Accurate Dichotomous Image Segmentation
UNet
brick of this paper's assembly: helper
1 other paper
1 dated earlier
2402.12688 (2024-02)
Robust-Wide: Robust Watermarking against Instruction-driven Image Editing
Up
brick of this paper's assembly: helper
1 other paper
1 dated earlier
2402.12688 (2024-02)
Robust-Wide: Robust Watermarking against Instruction-driven Image Editing
denormalize
brick of this paper's assembly: helper
1 other paper
1 later
2605.26702 (2026-05)
Rotation-Invariant Spherical Watermarking via Third-Order SO(3) Representation Coupling
normalize
brick of this paper's assembly: helper
1 other paper
1 later
2605.26702 (2026-05)
Rotation-Invariant Spherical Watermarking via Third-Order SO(3) Representation Coupling

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-24.

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 present MaskWM, a simple, efficient, and flexible framework for image watermarking. MaskWM has two variants: (1) MaskWM-D, which supports global watermark embedding, watermark localization, and local watermark extraction for applications such as tamper detection; (2) MaskWM-ED, which focuses on local watermark embedding and extraction, offering enhanced robustness in small regions to support fine-grined image protection. MaskWM-D builds on the classical encoder-distortion layer-decoder training paradigm. In MaskWM-D, we introduce a simple masking mechanism during the decoding stage that enables both global and local watermark extraction. During training, the decoder is guided by various types of masks applied to watermarked images before extraction, helping it learn to localize watermarks and extract them from the corresponding local areas. MaskWM-ED extends this design by incorporating the mask into the encoding stage as well, guiding the encoder to embed the watermark in designated local regions, which improves robustness under regional attacks. Extensive experiments show that MaskWM achieves state-of-the-art performance in global and local watermark extraction, watermark localization, and multi-watermark embedding. It outperforms all existing baselines, including the recent leading model WAM for local watermarking, while preserving high visual quality of the watermarked images. In addition, MaskWM is highly efficient and adaptable. It requires only 20 hours of training on a single A6000 GPU, achieving 15× computational efficiency compared to WAM. By simply adjusting the distortion layer, MaskWM can be quickly fine-tuned to meet varying robustness requirements.

For agents

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

get_harvested_code_for_paper("2504.12739")
get_code_for_paper("2504.12739")
have("2504.12739")

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

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

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

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

Connect an agent — have() is free.