SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2308.13133 · ICCV · 2023

AccFlow: Backward Accumulation for Long-Range Optical Flow

Xiaohong Liu, Guangtao Zhai, Xinyang Jiang, Kunming Luo, Shuaicheng Liu, Guangyang Wu, Qingqing Zheng, Wenyi Wang

arXiv · PDF · Open in the Atlas

Code that ran

19 of 22 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (6 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 0 violated it and 7 have no contract verdict; 10 failures of our instrument; 3 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/2308.13133.json · badge: /api/ran/2308.13133.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
mulns/accflow canonical (classifier label)
classifier basis: census
9 ran · 2 no recorded run
mulns/AccFlow community
Papers with Code archive
10 ran · 1 no recorded run
FunctionStatusWhere it lives
AccPlus Ran
ran on a synthesized input · constructed an object; no result was computed
mulns/AccFlow/networks/AccFlow_.py
code served (permissive licence) · get_code("c77aa920181bdc89")
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, AccPlus: 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 torchvision.ops import DeformConv2d

torch.manual_seed(0)

class ZeroConv2d(nn.Module):
    """The 3x3 convolution in which weight and bias are initialized with zero.
    The output is then scaled with a positive learnable param.
    """

    def __init__(self, in_channel, out_channel):
        super().__init__()
        self.conv = nn.Conv2d(in_channel, out_channel, 3, padding=1)
        self.conv.weight.data.zero_()
        self.conv.bias.data.zero_()
        self.scale = nn.Parameter(torch.zeros(1, out_channel, 1, 1))

    def forward(self, input):
        out = self.conv(input)
        out = out * torch.exp(self.scale * 3)
        return out

class AccPlus(nn.Module):

    def __init__(self, c=128):
        super().__init__()
        self.conv1 = nn.Sequential(nn.Conv2d(c * 2 + 1, c * 2, 3, 1, 1), nn.ReLU(True), nn.Conv2d(c * 2, c, 3, 1, 1))
        self.conv2 = nn.Sequential(nn.Conv2d(c * 2, c * 2, 3, 1, 1), nn.ReLU(True), nn.Conv2d(c * 2, c, 3, 1, 1), nn.ReLU(True), ZeroConv2d(c, 3 ** 3))
        self.dconv = DeformConv2d(c, c, 3, 1, 1)
        self.conv3 = nn.Sequential(nn.Conv2d(c * 2 + 1, c * 2, 3, 1, 1), nn.ReLU(True), nn.Conv2d(c * 2, c, 3, 1, 1))
        self.conv4 = nn.Sequential(nn.Conv2d(c * 4, c * 2, 3, 1, 1), nn.ReLU(True), nn.Conv2d(c * 2, c, 3, 1, 1), nn.ReLU(True), nn.Conv2d(c, c, 1, 1, 0))

    def forward(self, df, f, o, c):
        x = torch.cat([df, f, o], dim=1)
        x = self.conv1(x)
        x = torch.cat([x, c], dim=1)
        x = self.conv2(x)
        off, m = torch.split(x, [18, 9], dim=1)
        m = torch.sigmoid(m)
        f_ = self.dconv(f, off, m)
        x = torch.cat([f_, df, o], dim=1)
        x = self.conv3(x)
        x = torch.cat([x, c, f_, df], dim=1)
        x = self.conv4(x)
        return x

c = 4
model = AccPlus(c=c)

batch_size = 2
height = 8
width = 8

df = torch.randn(batch_size, c, height, width)
f = torch.randn(batch_size, c, height, width)
o = torch.randn(batch_size, 1, height, width)
c_tensor = torch.randn(batch_size, c, height, width)

ARGS = {
    "c": c,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type AccPlus — 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 AccPlus 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
BasicEncoder Ran
ran on a synthesized input · constructed an object; no result was computed
mulns/AccFlow/networks/AccFlow_.py
code served (permissive licence) · get_code("576b3b38aab41bd9")
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, BasicEncoder: 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 = {
    'input_dim': 3,
    'output_dim': 128,
    'norm_fn': 'batch',
    'dropout': 0.1,
}
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 BasicEncoder — 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 BasicEncoder 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
Blending Ran
ran on a synthesized input
mulns/AccFlow/networks/AccFlow_.py
code served (permissive licence) · get_code("5480e390f26b975a")
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 = {
    'c': 4
}

# Construct small tensors matching the expected shapes
batch_size = 2
channels = INIT_ARGS['c']
height, width = 3, 4  # Distinct spatial dimensions

# emap: (batch, channels, height, width)
emap = torch.randn(batch_size, channels, height, width)

# f1, f2: same shape as emap
f1 = torch.randn(batch_size, channels, height, width)
f2 = torch.randn(batch_size, channels, height, width)

ARGS = {
    'f1': f1,
    'f2': f2,
    'emap': emap
}
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)
EPE Ran
ran, honoured the contract we drafted
mulns/accflow/networks/losses.py
pointer only (licence: MIT); the stored copy get_code serves, from Jia-Research-Lab/MSAD, is pointer only (licence: NONE) · get_code("6baff9bff3755d04")
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 Jia-Research-Lab/MSAD, 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. A run is recorded.

FlowDecoder Ran
ran on a synthesized input · constructed an object; no result was computed
mulns/AccFlow/networks/AccFlow_.py
code served (permissive licence) · get_code("8ff75104333f9fe0")
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, FlowDecoder: 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)

# FlowDecoder expects a single argument: x (the input tensor)
# Looking at the forward method:
# - x is passed to self.flow and self.mask (both expect cin channels)
# - self.flow outputs 2 channels
# - self.mask outputs 64*9 channels
# The __init__ takes cin=128 as a parameter

# Create a small input tensor that matches the expected input channels
# x should have shape [batch, cin, height, width]
# Using batch=2, cin=128, height=4, width=3 (distinct sizes)
x = torch.randn(2, 128, 4, 3)

ARGS = {
    'cin': 128,
}
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 FlowDecoder — 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 FlowDecoder 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
FlowEncoder Ran
ran on a synthesized input · constructed an object; no result was computed
mulns/AccFlow/networks/AccFlow_.py
code served (permissive licence) · get_code("87bf584d40e57b05")
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, FlowEncoder: 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)

class FlowEncoder(nn.Module):

    def __init__(self, c=128):
        super().__init__()
        self.conv1 = nn.Conv2d(2, c, 7, stride=1, padding=3)
        self.conv2 = nn.Conv2d(c, c * 2, 3, stride=1, padding=1)
        self.conv3 = nn.Conv2d(c * 2, c, 1, stride=1, padding=0)
        self.relu = nn.ReLU(True)

    def forward(self, x):
        is_list = isinstance(x, (tuple, list))
        if is_list:
            batch_dim = x[0].shape[0]
            x = torch.cat(x, dim=0)
        x = self.conv3(self.relu(self.conv2(self.relu(self.conv1(x)))))
        if is_list:
            x = torch.split(x, batch_dim, dim=0)
        return x


# Create test input tensors with shape (batch=2, channels=2, height=4, width=3)
input_tensor = torch.randn(2, 2, 4, 3)

# Alternative: list of tensors for testing the list handling path
input_list = [torch.randn(1, 2, 4, 3), torch.randn(1, 2, 4, 3)]

ARGS = {
    'c': 128
}
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 FlowEncoder — 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 FlowEncoder 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
ResidualBlock Ran
ran on a synthesized input · constructed an object; no result was computed
mulns/AccFlow/networks/AccFlow_.py
code served (permissive licence) · get_code("84fcdc8833141dbe")
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, ResidualBlock: 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_planes': 16,
    'planes': 32,
    'norm_fn': 'group',
    'stride': 1,
}
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 ResidualBlock — 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 ResidualBlock 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
ZeroConv2d Ran
ran on a synthesized input · constructed an object; no result was computed
mulns/AccFlow/networks/AccFlow_.py
code served (permissive licence) · get_code("e5c5c487aa60bd33")
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, ZeroConv2d: 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)

# ZeroConv2d expects:
# - in_channel: int (number of input channels)
# - out_channel: int (number of output channels)

ARGS = {
    "in_channel": 3,
    "out_channel": 4,
}
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 ZeroConv2d — 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 ZeroConv2d 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
backwarp Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
mulns/AccFlow/networks/AccFlow_.py
code served (permissive licence) · get_code("6e854d3d7f3980c8")
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. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 image tensor (N, C, H, W)
# N=2 (batch), C=3 (channels), H=4 (height), W=5 (width)
image = torch.randn(2, 3, 4, 5)

# Create a flow tensor (N, 2, H, W)
# N=2 (batch), 2 for x and y flow components, H=4, W=5
flow = torch.randn(2, 2, 4, 5) * 0.5  # Small flow values

ARGS = {
    'image': image,
    'flow': flow,
    'interp_mode': 'bilinear',
    'padding_mode': 'zeros'
}
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
conv Ran
ran; our contract draft was wrong, not the code
mulns/accflow/networks/modules.py
code served (permissive licence) · get_code("277f39f9246c0485")
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 Conv2d. 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_planes": 3,
    "out_planes": 64,
    "kernel_size": 3,
    "stride": 1,
    "dilation": 1,
}
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 Conv2d — a Conv2d output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Conv2d 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
coords_grid Ran
ran, honoured the contract we drafted
mulns/accflow/networks/utils.py
pointer only (licence: MIT); the stored copy get_code serves, from plusgood-steven/id-blau, is pointer only (licence: NONE) · get_code("81a137c5322b4930")
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 plusgood-steven/id-blau, 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. A run is recorded.

downflow8 Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
mulns/AccFlow/networks/AccFlow_.py
code served (permissive licence) · get_code("155f17374085bd89")
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, 2, 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)

# Create a small flow tensor
# flow should have shape (batch, channels, height, width)
# height and width must be divisible by 8
flow = torch.randn(2, 2, 16, 24)

# mode parameter for interpolation
mode = 'bilinear'

ARGS = {
    'flow': flow,
    'mode': mode,
}
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, 2, 2, 3) — shape (2, 2, 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
fetch_optimizer Ran
ran; our contract draft was wrong, not the code
mulns/accflow/fine_tune.py
code served (permissive licence) · get_code("ae7c4400ee88b6af")
How it ran

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

import torch
import torch.nn as nn
from torch import optim

torch.manual_seed(0)

# Create a minimal model
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, x):
        return self.linear(x)

model = SimpleModel()

# Create args object with required attributes
class Args:
    def __init__(self):
        self.lr = 0.001
        self.wdecay = 0.01
        self.epsilon = 1e-8
        self.num_steps = 1000

args = Args()

ARGS = {
    "args": args,
    "model": model
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
forward_interpolate Ran
ran; our contract draft was wrong, not the code
mulns/accflow/networks/utils.py
code served (permissive licence) · get_code("f7edf6ef2466762a")
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 3, dtype family float, shape (2, 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 numpy as np
from scipy import interpolate

torch.manual_seed(0)

# Create a small flow tensor with shape (2, height, width)
# The function expects flow[0] to be dx and flow[1] to be dy
height = 4
width = 3
flow = torch.randn(2, height, width)

ARGS = {
    "flow": flow
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 3, dtype family float, shape (2, 4, 3) — shape (2, 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
getOcc Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
mulns/AccFlow/networks/AccFlow_.py
code served (permissive licence) · get_code("2f15e505b8f9ff7b")
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, 5) as a later run recorded it. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 test tensors
batch_size = 2
channels = 3
height = 4
width = 5

# F12: flow field (N, 2, H, W)
F12 = torch.randn(batch_size, 2, height, width)

# I1: first image (N, C, H, W)
I1 = torch.randn(batch_size, channels, height, width)

# I2: second image (N, C, H, W)
I2 = torch.randn(batch_size, channels, height, width)

# binary: whether to return binary occlusion mask
binary = True

ARGS = {
    'F12': F12,
    'I1': I1,
    'I2': I2,
    'binary': binary
}
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, 5) — shape (2, 1, 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
get_loss Ran
ran; our contract draft was wrong, not the code
mulns/accflow/networks/losses.py
code served (permissive licence) · get_code("7cfa1a8b7a0dd16c")
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 L1Loss. 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 = {
    'loss_type': 'l1'
}
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 L1Loss — a L1Loss output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a L1Loss 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
preprocess Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
mulns/accflow/fine_tune.py
code served (permissive licence) · get_code("bdc31782573bea88")
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 dict. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 expects a batch dict with keys containing 'flow' or 'imgs'
# For 'flow' keys: tensors of shape (batch, 10, H, W) that get split into 5 or 6 parts along dim=1
# For 'imgs' keys: tensors of shape (batch, 21, H, W) that get split into 7 parts of 3 channels each

# Create batch with flow and imgs keys
batch = {
    'flow_data': torch.randint(0, 256, (2, 10, 4, 5), dtype=torch.uint8),  # batch=2, 10 channels, H=4, W=5
    'imgs_data': torch.randint(0, 256, (2, 21, 4, 5), dtype=torch.uint8),  # batch=2, 21 channels, H=4, W=5
}

ARGS = {
    'batch': 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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
sequence_loss_acc Ran
ran; our contract draft was wrong, not the code
mulns/accflow/loss.py
code served (permissive licence) · get_code("f2ea78b310d23fe1")
How it ran

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

import torch

torch.manual_seed(0)

# The function expects:
# - flow_preds: a list/sequence of tensors with optical flow predictions
# - flow_gts: a list/sequence of tensors with ground truth optical flow
# Both should have same length and tensor shapes should be compatible for subtraction

# Create small sample optical flow tensors (batch_size=2, height=4, width=3, channels=2)
batch_size = 2
height = 4
width = 3
channels = 2

# Create a sequence of predictions (let's use 3 steps in the sequence)
num_steps = 3

flow_preds = [
    torch.randn(batch_size, channels, height, width) for _ in range(num_steps)
]

flow_gts = [
    torch.randn(batch_size, channels, height, width) for _ in range(num_steps)
]

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

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

import torch

torch.manual_seed(0)

# flow_preds: list of tensors, each of shape (batch, 2, height, width)
# representing flow predictions at different scales
# flow_gt: ground truth flow of shape (batch, 2, height, width)
# gamma: decay factor for weighting predictions

batch_size = 2
height = 4
width = 3
num_predictions = 3

# Create a list of flow predictions (multiple scales/iterations)
flow_preds = [
    torch.randn(batch_size, 2, height, width) for _ in range(num_predictions)
]

# Create ground truth flow
flow_gt = torch.randn(batch_size, 2, height, width)

# Decay factor for sequence weighting
gamma = 0.8

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

no invocation recorded.

bilinear_sampler Not yet run
unverified (harvested, no recorded run)
mulns/accflow/networks/utils.py
code served (permissive licence) · get_code("0d272f32cfaeb750")
How it ran

no invocation recorded.

getOcc Not yet run
unverified (harvested, no recorded run)
mulns/accflow/networks/AccFlow_.py
code served (permissive licence) · get_code("ebd6cc10326f76f8")
How it ran

no invocation recorded.

Also present in other papers' code

Of 22 samples lifted from this paper's linked repositories, 22 carry a function identity and 0 do not. Of the 21 distinct functions with an identity, 4 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 0 the same month, 3 later) and 17 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
bilinear_sampler 18 other papers
10 dated earlier, 8 later · 7 only as an assembly brick
2003.12039 (2020-03)
RAFT: Recurrent All-Pairs Field Transforms for Optical Flow
2108.00622 (2021-08)
Recurrent Mask Refinement for Few-Shot Medical Image Segmentation
2108.10552 (2021-08)
E-RAFT: Dense Optical Flow from Event Cameras
and 15 more not named here
coords_grid 7 other papers
2 dated earlier, 5 later · 5 only as an assembly brick
2003.12039 (2020-03)
RAFT: Recurrent All-Pairs Field Transforms for Optical Flow
2202.03857 (2022-02)
Learning Optical Flow with Adaptive Graph Reasoning
2405.14793 (2024-05)
SEA-RAFT: Simple, Efficient, Accurate RAFT for Optical Flow
and 4 more not named here
forward_interpolate 4 other papers
1 dated earlier, 2 later, 1 same year, order not determinable
2109.15321 (2021-09)
Sensor-Guided Optical Flow
Jin_PixelStitch_Structure-Preserving_Pixel-Wise_Bidirectional_Warps_for_Unsupervised_Image_Stitching_ICCV_2025_paper (2025 (year only))
PixelStitch: Structure-Preserving Pixel-Wise Bidirectional Warps for Unsupervised Image Stitching
and 1 more not named here
EPE 2 other papers
2 dated earlier
2005.10954 (2020-05)
Head2Head: Video-based Neural Head Synthesis
2109.06875 (2021-09)
Multi-Scale Aligned Distillation for Low-Resolution Detection

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

Recent deep learning-based optical flow estimators have exhibited impressive performance in generating local flows between consecutive frames. However, the estimation of long-range flows between distant frames, particularly under complex object deformation and large motion occlusion, remains a challenging task. One promising solution is to accumulate local flows explicitly or implicitly to obtain the desired long-range flow. Nevertheless, the accumulation errors and flow misalignment can hinder the effectiveness of this approach. This paper proposes a novel recurrent framework called AccFlow, which recursively backward accumulates local flows using a deformable module called as AccPlus. In addition, an adaptive blending module is designed along with AccPlus to alleviate the occlusion effect by backward accumulation and rectify the accumulation error. Notably, we demonstrate the superiority of backward accumulation over conventional forward accumulation, which to the best of our knowledge has not been explicitly established before. To train and evaluate the proposed AccFlow, we have constructed a large-scale high-quality dataset named CVO, which provides ground-truth optical flow labels between adjacent and distant frames. Extensive experiments validate the effectiveness of AccFlow in handling long-range optical flow estimation. Codes are available at https://github.com/mulns/AccFlow.

For agents

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

get_harvested_code_for_paper("2308.13133")
get_code_for_paper("2308.13133")
have("2308.13133")

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

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

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

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

Connect an agent — have() is free.