SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2309.03897 · ICCV · 2023

ProPainter: Improving Propagation and Transformer for Video Inpainting

Shangchen Zhou, Chen Change Loy, Chongyi Li, Kelvin Chan

arXiv · PDF · Open in the Atlas

Code that ran

20 of 34 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (10 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 12 have no contract verdict; 8 failures of our instrument; 14 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/2309.03897.json · badge: /api/ran/2309.03897.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
osmr/pytorchcv community
Papers with Code archive
10 ran · 8 no recorded run
sczhou/propainter marked official in Papers with Code
Papers with Code archive
10 ran · 6 no recorded run
FunctionStatusWhere it lives
DeformableAlignment Ran
ran on a synthesized input
sczhou/propainter/model/propainter.py
pointer only (licence: NOASSERTION) · get_code("4cdb3a50bc7f846f")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, sczhou/propainter (NOASSERTION). 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.

Encoder Ran
ran on a synthesized input · constructed an object; no result was computed
sczhou/propainter/model/propainter.py
pointer only (licence: NOASSERTION) · get_code("53a5eb8ddb64103e")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, sczhou/propainter (NOASSERTION). 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.

FusionFeedForward Ran
ran on a synthesized input · constructed an object; no result was computed
sczhou/propainter/model/propainter.py
pointer only (licence: NOASSERTION) · get_code("83d5cf110edb5af1")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, sczhou/propainter (NOASSERTION). 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.

FusionFeedForward Ran
ran on a synthesized input · constructed an object; no result was computed
osmr/pytorchcv/pytorchcv/models/propainter.py
code served (permissive licence) · get_code("83365c19252ece6f")
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, FusionFeedForward: 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 the FusionFeedForward class (provided)
class FusionFeedForward(nn.Module):

    def __init__(self, dim: int, hidden_dim: int, kernel_size: tuple[int, int], stride: tuple[int, int], padding: tuple[int, int]):
        super(FusionFeedForward, self).__init__()
        self.kernel_size = kernel_size
        self.stride = stride
        self.padding = padding
        self.fc1 = nn.Sequential(nn.Linear(in_features=dim, out_features=hidden_dim))
        self.fc2 = nn.Sequential(nn.GELU(), nn.Linear(in_features=hidden_dim, out_features=dim))
        from functools import reduce
        self.kernel_shape = reduce(lambda x, y: x * y, self.kernel_size)

    def forward(self, x: torch.Tensor, output_size: tuple[int, int]):
        import torch.nn.functional as F
        from functools import reduce
        n_vecs = 1
        for i, d in enumerate(self.kernel_size):
            n_vecs *= int((output_size[i] + 2 * self.padding[i] - (d - 1) - 1) / self.stride[i] + 1)
        x = self.fc1(x)
        b, n, c = x.size()
        normalizer = x.new_ones(b, n, self.kernel_shape).view(-1, n_vecs, self.kernel_shape).permute(0, 2, 1)
        normalizer = F.fold(input=normalizer, output_size=output_size, kernel_size=self.kernel_size, padding=self.padding, stride=self.stride)
        x = F.fold(input=x.view(-1, n_vecs, c).permute(0, 2, 1), output_size=output_size, kernel_size=self.kernel_size, padding=self.padding, stride=self.stride)
        x = F.unfold(input=x / normalizer, kernel_size=self.kernel_size, padding=self.padding, stride=self.stride)
        x = x.permute(0, 2, 1).contiguous().view(b, n, c)
        x = self.fc2(x)
        return x

# Set up parameters
dim = 4
hidden_dim = 8
kernel_size = (3, 3)
stride = (1, 1)
padding = (1, 1)

# Instantiate the module
model = FusionFeedForward(
    dim=dim,
    hidden_dim=hidden_dim,
    kernel_size=kernel_size,
    stride=stride,
    padding=padding
)

ARGS = {
    "dim": dim,
    "hidden_dim": hidden_dim,
    "kernel_size": kernel_size,
    "stride": stride,
    "padding": padding
}
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 FusionFeedForward — 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 FusionFeedForward 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
InterpolationBlock Ran
ran on a synthesized input · constructed an object; no result was computed
osmr/pytorchcv/pytorchcv/models/propainter.py
code served (permissive licence) · get_code("2fd5dd72e6bde9a9")
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, InterpolationBlock: 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 = {
    'scale_factor': 2,
    'out_size': None,
    'mode': 'bilinear',
    'align_corners': True,
    'up': True,
}
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 InterpolationBlock — 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 InterpolationBlock 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
ModulatedDeformConv2d Ran
ran on a synthesized input · constructed an object; no result was computed
sczhou/propainter/model/propainter.py
pointer only (licence: NOASSERTION) · get_code("cbeb924f2247e025")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, sczhou/propainter (NOASSERTION). 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.

SoftComp Ran
ran on a synthesized input · constructed an object; no result was computed
osmr/pytorchcv/pytorchcv/models/propainter.py
code served (permissive licence) · get_code("b4d2964f508734c3")
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, SoftComp: 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 = {
    "channels": 3,
    "hidden_dim": 16,
    "kernel_size": (2, 2),
    "stride": (1, 1),
    "padding": (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 SoftComp — 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 SoftComp 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
SoftSplit Ran
ran on a synthesized input · constructed an object; no result was computed
sczhou/propainter/model/propainter.py
pointer only (licence: NOASSERTION) · get_code("9ff5a33dc359eb58")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, sczhou/propainter (NOASSERTION). 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.

SoftSplit Ran
ran on a synthesized input · constructed an object; no result was computed
osmr/pytorchcv/pytorchcv/models/propainter.py
code served (permissive licence) · get_code("7bd366ee66ea9c84")
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, SoftSplit: 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
from functools import reduce

class SoftSplit(nn.Module):
    """
    Soft split.
    """

    def __init__(self, channels: int, hidden_dim: int, kernel_size: tuple[int, int], stride: tuple[int, int], padding: tuple[int, int]):
        super(SoftSplit, self).__init__()
        self.kernel_size = kernel_size
        self.stride = stride
        self.padding = padding
        self.t2t = nn.Unfold(kernel_size=kernel_size, padding=padding, stride=stride)
        emb_in_channels = reduce(lambda x, y: x * y, kernel_size) * channels
        self.embedding = nn.Linear(in_features=emb_in_channels, out_features=hidden_dim)

    def forward(self, x: torch.Tensor, batch: int, output_size: tuple[int, int]):
        f_height = int((output_size[0] + 2 * self.padding[0] - (self.kernel_size[0] - 1) - 1) / self.stride[0] + 1)
        f_width = int((output_size[1] + 2 * self.padding[1] - (self.kernel_size[1] - 1) - 1) / self.stride[1] + 1)
        x = self.t2t(x)
        x = x.permute(0, 2, 1)
        x = self.embedding(x)
        x = x.view(batch, -1, f_height, f_width, x.size(2))
        return x

torch.manual_seed(0)

channels = 3
hidden_dim = 16
kernel_size = (3, 3)
stride = (1, 1)
padding = (1, 1)

x = torch.randn(2, 3, 8, 8)
batch = 2
output_size = (8, 8)

ARGS = {
    "channels": channels,
    "hidden_dim": hidden_dim,
    "kernel_size": kernel_size,
    "stride": stride,
    "padding": padding
}
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 SoftSplit — 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 SoftSplit 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
SparseWindowAttention Ran
ran on a synthesized input · constructed an object; no result was computed
sczhou/propainter/model/propainter.py
pointer only (licence: NOASSERTION) · get_code("c4696b981f65032e")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, sczhou/propainter (NOASSERTION). 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.

SparseWindowAttention Ran
ran on a synthesized input · constructed an object; no result was computed
osmr/pytorchcv/pytorchcv/models/propainter.py
code served (permissive licence) · get_code("f13da9bfe053deb9")
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, SparseWindowAttention: 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
import math

torch.manual_seed(0)

# Parameters for SparseWindowAttention
dim = 8
num_heads = 2
window_size = (2, 2)
pool_size = (2, 2)
qkv_bias = True
attn_drop = 0.1
proj_drop = 0.1
pooling_token = True

ARGS = {
    'dim': dim,
    'num_heads': num_heads,
    'window_size': window_size,
    'pool_size': pool_size,
    'qkv_bias': qkv_bias,
    'attn_drop': attn_drop,
    'proj_drop': proj_drop,
    'pooling_token': pooling_token,
}
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 SparseWindowAttention — 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 SparseWindowAttention 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
fbConsistencyCheck Ran
ran; our contract draft was wrong, not the code
sczhou/propainter/model/propainter.py
pointer only (licence: NOASSERTION) · get_code("e34f0d309218c4cb")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, sczhou/propainter (NOASSERTION). 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.

fb_consistency_check Ran
ran; our contract draft was wrong, not the code
osmr/pytorchcv/pytorchcv/models/propainter.py
code served (permissive licence) · get_code("3d45197997a22569")
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, 1, 4, 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)

# Create forward and backward optical flow tensors
# Shape: (batch_size, height, width, 2)
# 2 represents (dx, dy) flow components
batch_size = 2
height = 4
width = 3

flow_fw = torch.randn(batch_size, 2, height, width)  # (n, 2, h, w) format
flow_bw = torch.randn(batch_size, 2, height, width)  # (n, 2, h, w) format

# Alpha parameters for consistency check thresholds
alpha1 = 0.01
alpha2 = 0.5

ARGS = {
    'flow_fw': flow_fw,
    'flow_bw': flow_bw,
    'alpha1': alpha1,
    'alpha2': alpha2,
}
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, 1, 4, 3) — shape (2, 1, 4, 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
flow_warp Ran
ran; our contract draft was wrong, not the code
sczhou/propainter/model/propainter.py
pointer only (licence: NOASSERTION) · get_code("0724aee9bf22b8ca")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, sczhou/propainter (NOASSERTION). 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.

flow_warp Ran
ran; our contract draft was wrong, not the code
osmr/pytorchcv/pytorchcv/models/propainter.py
code served (permissive licence) · get_code("6dba82ef5e1d54be")
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
import torch.nn.functional as F

torch.manual_seed(0)

# Create a small batch of input feature maps: (batch=2, channels=4, height=3, width=5)
x = torch.randn(2, 4, 3, 5)

# Create optical flow with matching spatial dimensions: (batch=2, height=3, width=5, 2)
# The last dimension represents (dx, dy) offsets
flow = torch.randn(2, 3, 5, 2)

# Standard interpolation mode
interpolation = 'bilinear'

# Standard padding mode
padding_mode = 'zeros'

# Standard align_corners setting
align_corners = True

ARGS = {
    'x': x,
    'flow': flow,
    'interpolation': interpolation,
    'padding_mode': padding_mode,
    'align_corners': align_corners,
}
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
lambda_leakyrelu Ran
ran; our contract draft was wrong, not the code
osmr/pytorchcv/pytorchcv/models/propainter.py
code served (permissive licence) · get_code("51f95e8de4711196")
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 function. 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 = {
    "negative_slope": 0.01,
    "inplace": True,
}
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 function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
lambda_tanh Ran
ran on a synthesized input
osmr/pytorchcv/pytorchcv/models/propainter.py
code served (permissive licence) · get_code("f2b2ee9daa61fd8a")
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 function. 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)

# The function lambda_tanh() takes no parameters
# It simply returns a lambda function that creates nn.Tanh() modules

ARGS = {}
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 function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
length_sq Ran
ran; our contract draft was wrong, not the code
sczhou/propainter/model/propainter.py
pointer only (licence: NOASSERTION) · get_code("99919ce37333a615")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, sczhou/propainter (NOASSERTION). 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.

window_partition Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
sczhou/propainter/model/propainter.py
pointer only (licence: NOASSERTION) · get_code("c384ddd8232a9399")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, sczhou/propainter (NOASSERTION). 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.

window_partition Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
osmr/pytorchcv/pytorchcv/models/propainter.py
code served (permissive licence) · get_code("fe92e2df4330e9ac")
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 8, dtype family float, shape (2, 2, 2, 4, 3, 4, 6, 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)

# Construct arguments for window_partition
# x: shape (B, T, H, W, C)
# window_size: tuple of (win_height, win_width)
# num_heads: int

# Parameters that must satisfy:
# - height must be divisible by win_height
# - width must be divisible by win_width
# - channels must be divisible by num_heads

batch = 2
time = 3
height = 8
width = 12
channels = 16
num_heads = 4
win_height = 4
win_width = 6

# Create input tensor with shape (B, T, H, W, C)
x = torch.randn(batch, time, height, width, channels)

ARGS = {
    "x": x,
    "window_size": (win_height, win_width),
    "num_heads": num_heads,
}
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 8, dtype family float, shape (2, 2, 2, 4, 3, 4, 6, 4) — shape (2, 2, 2, 4, 3, 4, 6, 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
BidirectionalPropagation Not yet run
unverified (harvested, no recorded run)
sczhou/propainter/model/propainter.py
pointer only (licence: NOASSERTION) · get_code("a7a87d9746b62c93")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, sczhou/propainter (NOASSERTION). 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.

BidirectionalPropagation Not yet run
unverified (harvested, no recorded run)
osmr/pytorchcv/pytorchcv/models/propainter.py
code served (permissive licence) · get_code("1949ce12af406baf")
How it ran

no invocation recorded.

Decoder Not yet run
unverified (harvested, no recorded run)
osmr/pytorchcv/pytorchcv/models/propainter.py
code served (permissive licence) · get_code("40b9d090f9b5f53d")
How it ran

no invocation recorded.

Encoder Not yet run
unverified (harvested, no recorded run)
osmr/pytorchcv/pytorchcv/models/propainter.py
code served (permissive licence) · get_code("5c1215e3af8ca9ac")
How it ran

no invocation recorded.

InpaintGenerator Not yet run
unverified (harvested, no recorded run)
sczhou/propainter/model/propainter.py
pointer only (licence: NOASSERTION) · get_code("7b9c10bbcaf37395")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, sczhou/propainter (NOASSERTION). 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.

PPDecoderUnit Not yet run
unverified (harvested, no recorded run)
osmr/pytorchcv/pytorchcv/models/propainter.py
code served (permissive licence) · get_code("f84760164d9dbd1e")
How it ran

no invocation recorded.

ProPainter Not yet run
unverified (harvested, no recorded run)
osmr/pytorchcv/pytorchcv/models/propainter.py
code served (permissive licence) · get_code("fc85da2c0e05c2ba")
How it ran

no invocation recorded.

SecondOrderDeformableAlignment Not yet run
unverified (harvested, no recorded run)
osmr/pytorchcv/pytorchcv/models/propainter.py
code served (permissive licence) · get_code("0abf43743d60bcbc")
How it ran

no invocation recorded.

SoftComp Not yet run
unverified (harvested, no recorded run)
sczhou/propainter/model/propainter.py
pointer only (licence: NOASSERTION) · get_code("ae3ca4ef5eac8aec")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, sczhou/propainter (NOASSERTION). 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.

TemporalSparseTransformer Not yet run
unverified (harvested, no recorded run)
sczhou/propainter/model/propainter.py
pointer only (licence: NOASSERTION) · get_code("0355e712ec5750ab")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, sczhou/propainter (NOASSERTION). 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.

TemporalSparseTransformer Not yet run
unverified (harvested, no recorded run)
osmr/pytorchcv/pytorchcv/models/propainter.py
code served (permissive licence) · get_code("3e21907371a62b09")
How it ran

no invocation recorded.

TemporalSparseTransformerBlock Not yet run
unverified (harvested, no recorded run)
sczhou/propainter/model/propainter.py
pointer only (licence: NOASSERTION) · get_code("fa4fe301319a48a2")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, sczhou/propainter (NOASSERTION). 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.

TemporalSparseTransformerBlock Not yet run
unverified (harvested, no recorded run)
osmr/pytorchcv/pytorchcv/models/propainter.py
code served (permissive licence) · get_code("c9aea7b11102c2aa")
How it ran

no invocation recorded.

constant_init Not yet run
unverified (harvested, no recorded run)
sczhou/propainter/model/propainter.py
pointer only (licence: NOASSERTION) · get_code("ae01e24194ffa4ed")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, sczhou/propainter (NOASSERTION). 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 34 samples lifted from this paper's linked repositories, 34 carry a function identity and 0 do not. Of the 34 distinct functions with an identity, 2 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 1 later) and 32 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
constant_init
brick of this paper's assembly: helper
2 other papers
2 dated earlier · 2 only as an assembly brick
2103.14030 (2021-03)
Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
2308.15085 (2023-08)
Learning to Upsample by Learning to Sample
length_sq
brick of this paper's assembly: helper
1 other paper
1 later
2406.07551 (2024-06)
Blur-aware Spatio-temporal Sparse Transformer for Video Deblurring

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

Flow-based propagation and spatiotemporal Transformer are two mainstream mechanisms in video inpainting (VI). Despite the effectiveness of these components, they still suffer from some limitations that affect their performance. Previous propagation-based approaches are performed separately either in the image or feature domain. Global image propagation isolated from learning may cause spatial misalignment due to inaccurate optical flow. Moreover, memory or computational constraints limit the temporal range of feature propagation and video Transformer, preventing exploration of correspondence information from distant frames. To address these issues, we propose an improved framework, called ProPainter, which involves enhanced ProPagation and an efficient Transformer. Specifically, we introduce dual-domain propagation that combines the advantages of image and feature warping, exploiting global correspondences reliably. We also propose a mask-guided sparse video Transformer, which achieves high efficiency by discarding unnecessary and redundant tokens. With these components, ProPainter outperforms prior arts by a large margin of 1.46 dB in PSNR while maintaining appealing efficiency.

For agents

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

get_harvested_code_for_paper("2309.03897")
get_code_for_paper("2309.03897")
have("2309.03897")

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

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

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

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

Connect an agent — have() is free.