SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2205.14620 · CVPR · 2022

IFRNet: Intermediate Feature Refine Network for Efficient Frame Interpolation

Jie Yang, Donghao Luo, Ying Tai, Chengjie Wang, Lingtong Kong, Boyuan Jiang, Wenqing Chu, Xiaoming Huang

arXiv · PDF · Open in the Atlas

Code that ran

17 of 20 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (2 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 0 violated it and 10 have no contract verdict; 5 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/2205.14620.json · badge: /api/ran/2205.14620.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
ltkong218/IFRNet canonical (classifier label)
classifier basis not recorded on the link
10 ran · 0 no recorded run
pilot7747/sldl community
Papers with Code archive
7 ran · 3 no recorded run
FunctionStatusWhere it lives
Decoder1 Ran
ran on a synthesized input · constructed an object; no result was computed
pilot7747/sldl/sldl/video/ifrnet.py
code served (permissive licence) · get_code("77b300d6590456e1")
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, Decoder1: 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)

# Create dummy tensors for the forward pass
# ft_: feature tensor from time t
# f0, f1: feature tensors from frames 0 and 1
# up_flow0, up_flow1: upsampled optical flow tensors

batch_size = 2
height = 4
width = 3

# ft_ has 64 channels (based on typical architecture patterns)
ft_ = torch.randn(batch_size, 64, height, width)

# f0, f1 have 32 channels each (typical feature dimension)
f0 = torch.randn(batch_size, 32, height, width)
f1 = torch.randn(batch_size, 32, height, width)

# up_flow0, up_flow1 have 2 channels (x and y flow components)
up_flow0 = torch.randn(batch_size, 2, height, width)
up_flow1 = torch.randn(batch_size, 2, height, width)

# Create the model
model = nn.Module()

# Build arguments dict
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 Decoder1 — 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 Decoder1 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
Decoder4 Ran
ran on a synthesized input
pilot7747/sldl/sldl/video/ifrnet.py
code served (permissive licence) · get_code("b29aa07553e77b81")
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

class ResBlock(nn.Module):

    def __init__(self, in_channels, side_channels, bias=True):
        super(ResBlock, self).__init__()
        self.side_channels = side_channels
        self.conv1 = nn.Sequential(nn.Conv2d(in_channels, in_channels, kernel_size=3, stride=1, padding=1, bias=bias), nn.PReLU(in_channels))
        self.conv2 = nn.Sequential(nn.Conv2d(side_channels, side_channels, kernel_size=3, stride=1, padding=1, bias=bias), nn.PReLU(side_channels))
        self.conv3 = nn.Sequential(nn.Conv2d(in_channels, in_channels, kernel_size=3, stride=1, padding=1, bias=bias), nn.PReLU(in_channels))
        self.conv4 = nn.Sequential(nn.Conv2d(side_channels, side_channels, kernel_size=3, stride=1, padding=1, bias=bias), nn.PReLU(side_channels))
        self.conv5 = nn.Conv2d(in_channels, in_channels, kernel_size=3, stride=1, padding=1, bias=bias)
        self.prelu = nn.PReLU(in_channels)

    def forward(self, x):
        out = self.conv1(x)
        out[:, -self.side_channels:, :, :] = self.conv2(out[:, -self.side_channels:, :, :])
        out = self.conv3(out)
        out[:, -self.side_channels:, :, :] = self.conv4(out[:, -self.side_channels:, :, :])
        out = self.prelu(x + self.conv5(out))
        return out

def convrelu(in_channels, out_channels, kernel_size=3, stride=1, padding=1, dilation=1, groups=1, bias=True):
    return nn.Sequential(nn.Conv2d(in_channels, out_channels, kernel_size, stride, padding, dilation, groups, bias=bias), nn.PReLU(out_channels))

class Decoder4(nn.Module):

    def __init__(self):
        super(Decoder4, self).__init__()
        self.convblock = nn.Sequential(convrelu(192 + 1, 192), ResBlock(192, 32), nn.ConvTranspose2d(192, 76, 4, 2, 1, bias=True))

    def forward(self, f0, f1, embt):
        b, c, h, w = f0.shape
        embt = embt.repeat(1, 1, h, w)
        f_in = torch.cat([f0, f1, embt], 1)
        f_out = self.convblock(f_in)
        return f_out


INIT_ARGS = {}

ARGS = {
    'f0': torch.randn(2, 96, 4, 3),
    'f1': torch.randn(2, 96, 4, 3),
    'embt': torch.randn(2, 1, 1, 1),
}
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)
Encoder Ran
ran on a synthesized input
pilot7747/sldl/sldl/video/ifrnet.py
code served (permissive licence) · get_code("4176171c340a2380")
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 tuple. 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

def convrelu(in_channels, out_channels, kernel_size=3, stride=1, padding=1, dilation=1, groups=1, bias=True):
    return nn.Sequential(nn.Conv2d(in_channels, out_channels, kernel_size, stride, padding, dilation, groups, bias=bias), nn.PReLU(out_channels))

class Encoder(nn.Module):

    def __init__(self):
        super(Encoder, self).__init__()
        self.pyramid1 = nn.Sequential(convrelu(3, 32, 3, 2, 1), convrelu(32, 32, 3, 1, 1))
        self.pyramid2 = nn.Sequential(convrelu(32, 48, 3, 2, 1), convrelu(48, 48, 3, 1, 1))
        self.pyramid3 = nn.Sequential(convrelu(48, 72, 3, 2, 1), convrelu(72, 72, 3, 1, 1))
        self.pyramid4 = nn.Sequential(convrelu(72, 96, 3, 2, 1), convrelu(96, 96, 3, 1, 1))

    def forward(self, img):
        f1 = self.pyramid1(img)
        f2 = self.pyramid2(f1)
        f3 = self.pyramid3(f2)
        f4 = self.pyramid4(f3)
        return (f1, f2, f3, f4)


INIT_ARGS = {}

ARGS = {
    'img': torch.randn(2, 3, 64, 64)
}

if __name__ == '__main__':
    encoder = Encoder(**INIT_ARGS)
    output = encoder(**ARGS)
    print("Output shapes:")
    for i, feat in enumerate(output):
        print(f"  f{i+1}: {feat.shape}")
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 tuple — a tuple output has no array shape of its own; none is 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
ResBlock Ran
ran on a synthesized input · constructed an object; no result was computed
pilot7747/sldl/sldl/video/ifrnet.py
code served (permissive licence) · get_code("a4a1cc910d0e13df")
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, ResBlock: 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)

# ResBlock constructor takes: in_channels, side_channels, bias
# The forward method processes tensors with shape (batch, channels, height, width)
# where the last side_channels channels are treated specially

ARGS = {
    "in_channels": 8,
    "side_channels": 3,
    "bias": 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 ResBlock — 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 ResBlock 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
convrelu Ran
ran; our contract draft was wrong, not the code
pilot7747/sldl/sldl/video/ifrnet.py
code served (permissive licence) · get_code("1a30c25d56937bad")
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 Sequential. 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,
    "kernel_size": 3,
    "stride": 1,
    "padding": 1,
    "dilation": 1,
    "groups": 1,
    "bias": 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 Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential output the recorded ndim 1 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
create_window Ran
ran on a synthesized input
ltkong218/IFRNet/metric.py
code served (permissive licence) · get_code("ddde98d185346197")
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 (3, 1, 5, 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
from math import exp

torch.manual_seed(0)

ARGS = {
    "window_size": 5,
    "channel": 3
}
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 (3, 1, 5, 5) — shape (3, 1, 5, 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
create_window_3d Ran
ran on a synthesized input
ltkong218/IFRNet/metric.py
code served (permissive licence) · get_code("44cbb53da2e7f168")
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 5, dtype family float, shape (1, 3, 5, 5, 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
from math import exp

torch.manual_seed(0)

# The function create_window_3d takes two parameters:
# - window_size: int, used in range() and as indexing/dimension specification
# - channel: int (default=1), used in expand() to specify number of channels

ARGS = {
    "window_size": 5,
    "channel": 3
}
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 5, dtype family float, shape (1, 3, 5, 5, 5) — shape (1, 3, 5, 5, 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
gaussian Ran
ran, honoured the contract we drafted
ltkong218/IFRNet/metric.py
code served (permissive licence) · get_code("c56b7ef16f309a45")
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 1, dtype family float, shape (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
from math import exp

torch.manual_seed(0)

ARGS = {
    "window_size": 5,
    "sigma": 1.0,
}
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 1, dtype family float, shape (5,) — shape (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_lr Ran
ran on a synthesized input
ltkong218/IFRNet/train_gopro.py
code served (permissive licence) · get_code("aaa35a6320121aa6")
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 float64, ndim 0, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import math
import numpy as np

class ArgsConfig:
    def __init__(self):
        self.epochs = 10
        self.iters_per_epoch = 100
        self.lr_start = 0.1
        self.lr_end = 0.001

args = ArgsConfig()
iters = 500

ARGS = {
    'args': args,
    'iters': iters
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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_robust_weight Ran
ran; our contract draft was wrong, not the code
ltkong218/IFRNet/utils.py
code served (permissive licence) · get_code("4dc728d7076fe0a9")
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, 3, 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)

# Create small tensors for flow_pred and flow_gt
# flow_pred and flow_gt should have shape (batch, channels, height, width) or (batch, 2, ...)
# Based on the function, it does .sum(dim=1), so dim 1 should be the flow channels (2 for optical flow)
batch_size = 2
flow_channels = 2

flow_pred = torch.randn(batch_size, flow_channels, 3, 4)
flow_gt = torch.randn(batch_size, flow_channels, 3, 4)

# beta is a scalar hyperparameter
beta = 0.5

ARGS = {
    "flow_pred": flow_pred,
    "flow_gt": flow_gt,
    "beta": beta,
}
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, 3, 4) — shape (2, 1, 3, 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
random_crop Ran
ran on a synthesized input
ltkong218/IFRNet/datasets.py
code served (permissive licence) · get_code("25081efb127925fd")
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. 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 numpy as np

np.random.seed(0)

# Create test images and flow field
# Images should be (height, width, channels) with height > width for distinct dimensions
height, width, channels = 300, 280, 3
img0 = np.random.randint(0, 256, size=(height, width, channels), dtype=np.uint8)
imgt = np.random.randint(0, 256, size=(height, width, channels), dtype=np.uint8)
img1 = np.random.randint(0, 256, size=(height, width, channels), dtype=np.uint8)
flow = np.random.randn(height, width, 2).astype(np.float32)

ARGS = {
    'img0': img0,
    'imgt': imgt,
    'img1': img1,
    'flow': flow,
    'crop_size': (224, 224)
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is 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
random_resize Ran
ran on a synthesized input
ltkong218/IFRNet/datasets.py
code served (permissive licence) · get_code("b17c1ca578cfa57d")
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. 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 random
import cv2
import numpy as np

# Create small dummy images as numpy arrays (OpenCV uses numpy arrays)
# Images should be in BGR format typically, with shape (height, width, channels)
img0 = np.random.randint(0, 256, (32, 48, 3), dtype=np.uint8)
imgt = np.random.randint(0, 256, (32, 48, 3), dtype=np.uint8)
img1 = np.random.randint(0, 256, (32, 48, 3), dtype=np.uint8)

# Flow is typically a 2-channel array (horizontal and vertical flow)
flow = np.random.randn(32, 48, 2).astype(np.float32)

ARGS = {
    "img0": img0,
    "imgt": imgt,
    "img1": img1,
    "flow": flow,
    "p": 0.1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
cv2, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is 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
random_reverse_channel Ran
ran on a synthesized input
ltkong218/IFRNet/datasets.py
code served (permissive licence) · get_code("04cda3b8b4206a50")
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. 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 numpy as np
import random

torch.manual_seed(0)
random.seed(0)

# The function expects:
# - img0, imgt, img1: numpy arrays with shape (height, width, channels)
#   that support slicing with [:, :, ::-1] for channel reversal
# - flow: some object (not used in the function body, just passed through)
# - p: probability parameter

# Create small test images as numpy arrays
img0 = np.random.randint(0, 256, (4, 3, 3), dtype=np.uint8)  # 4 height, 3 width, 3 channels
imgt = np.random.randint(0, 256, (4, 3, 3), dtype=np.uint8)
img1 = np.random.randint(0, 256, (4, 3, 3), dtype=np.uint8)

# flow can be any object since it's not used in the function body
flow = np.random.randn(4, 3, 2)

# Probability parameter
p = 0.5

ARGS = {
    "img0": img0,
    "imgt": imgt,
    "img1": img1,
    "flow": flow,
    "p": p
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is 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
read Ran
ran, honoured the contract we drafted
ltkong218/IFRNet/utils.py
code served (permissive licence) · get_code("bbbedcca6e1544a7")
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 ndarray, ndim 3, dtype family int, shape (4, 3, 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 tempfile
import os
import numpy as np
import struct

# Create temporary test files for different formats
temp_dir = tempfile.mkdtemp()

# Create a .pfm file (Portable Float Map - color)
pfm_color_path = os.path.join(temp_dir, 'test_color.pfm')
with open(pfm_color_path, 'wb') as f:
    f.write(b'PF\n')
    f.write(b'2 2\n')
    f.write(b'-1.0\n')
    # Write 2x2x3 data in little-endian float format
    data = np.random.rand(2, 2, 3).astype(np.float32)
    data = np.flipud(data)
    f.write(data.tobytes())

# Create a .flo file (optical flow)
flo_path = os.path.join(temp_dir, 'test.flo')
with open(flo_path, 'wb') as f:
    f.write(b'PIEH')
    width, height = 2, 2
    f.write(struct.pack('i', width))
    f.write(struct.pack('i', height))
    flow_data = np.random.rand(height, width, 2).astype(np.float32)
    f.write(flow_data.tobytes())

# Create a .float3 file
float3_path = os.path.join(temp_dir, 'test.float3')
with open(float3_path, 'wb') as f:
    f.write(b'float\n')
    f.write(b'3\n')
    f.write(b'2\n')
    f.write(b'2\n')
    f.write(b'3\n')
    data = np.random.rand(3, 2, 2).astype(np.float32)
    f.write(data.tobytes())

# Create a .png file using imageio
png_path = os.path.join(temp_dir, 'test.png')
png_data = np.random.randint(0, 256, (4, 3, 3), dtype=np.uint8)
try:
    from imageio import imwrite
    imwrite(png_path, png_data)
except:
    # Fallback: create dummy png
    png_path = pfm_color_path

ARGS = {
    'file': png_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
imageio, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 3, dtype family int, shape (4, 3, 3) — shape (4, 3, 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
resize Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
pilot7747/sldl/sldl/video/ifrnet.py
code served (permissive licence) · get_code("5b17e544cf23ff18")
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, 6, 10) 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 input tensor for F.interpolate
# F.interpolate expects 4D input for bilinear mode: (batch, channels, height, width)
x = torch.randn(2, 4, 3, 5)

# scale_factor is a float that scales the spatial dimensions
scale_factor = 2.0

ARGS = {
    'x': x,
    'scale_factor': scale_factor
}
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, 6, 10) — shape (2, 4, 6, 10) 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
resize Ran
ran; our contract draft was wrong, not the code
ltkong218/IFRNet/models/IFRNet.py
pointer only (licence: MIT); the stored copy get_code serves, from MCG-NKU/AMT, is pointer only (licence: NOASSERTION) · get_code("3073f3b71dc41f8a")
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 MCG-NKU/AMT, and GitHub could not classify the licence of that repository (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.

warp Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
pilot7747/sldl/sldl/video/ifrnet.py
code served (permissive licence) · get_code("a4d5c37ca03cf29f")
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
import torch.nn.functional as F

torch.manual_seed(0)

# img: input image tensor, should be shape (B, C, H, W)
# flow: optical flow tensor, should be shape (B, 2, H, W)
# The function expects flow to have 2 channels (x and y components)

B = 2  # batch size
C = 3  # channels (RGB)
H = 4  # height
W = 5  # width

# Create a small image tensor
img = torch.randn(B, C, H, W)

# Create a small optical flow tensor with 2 channels (x and y flow)
flow = torch.randn(B, 2, H, W)

ARGS = {
    "img": img,
    "flow": flow,
}
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
Decoder2 Not yet run
unverified (harvested, no recorded run)
pilot7747/sldl/sldl/video/ifrnet.py
code served (permissive licence) · get_code("9d92261879f6a644")
How it ran

no invocation recorded.

Decoder3 Not yet run
unverified (harvested, no recorded run)
pilot7747/sldl/sldl/video/ifrnet.py
code served (permissive licence) · get_code("311153678094963f")
How it ran

no invocation recorded.

IFRNet Not yet run
unverified (harvested, no recorded run)
pilot7747/sldl/sldl/video/ifrnet.py
code served (permissive licence) · get_code("b4b68124cf219559")
How it ran

no invocation recorded.

Also present in other papers' code

Of 20 samples lifted from this paper's linked repositories, 20 carry a function identity and 0 do not. Of the 20 distinct functions with an identity, 6 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 1 the same month, 5 later) and 14 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
gaussian 160 other papers
22 dated earlier, 2 the same month, 135 later, 1 same year, order not determinable · 7 only as an assembly brick
1812.11941 (2018-12)
High Quality Monocular Depth Estimation via Transfer Learning
1904.01538 (2019-04)
Spatial Attentive Single-Image Deraining with a High Quality Real Rain Dataset
1907.11628 (2019-07)
Unsupervised Learning for Optical Flow Estimation Using Pyramid Convolution LSTM
and 157 more not named here
warp
brick of this paper's assembly: helper
3 other papers
3 later · 1 only as an assembly brick
2304.09790 (2023-04)
AMT: All-Pairs Multi-Field Transforms for Efficient Frame Interpolation
2407.14126 (2024-07)
Mono-ViFI: A Unified Learning Framework for Self-supervised Single- and Multi-frame Monocular Depth Estimation
2407.16308 (2024-07)
SAFNet: Selective Alignment Fusion Network for Efficient HDR Imaging
convrelu
brick of this paper's assembly: helper
2 other papers
2 later · 1 only as an assembly brick
2304.09790 (2023-04)
AMT: All-Pairs Multi-Field Transforms for Efficient Frame Interpolation
2407.16308 (2024-07)
SAFNet: Selective Alignment Fusion Network for Efficient HDR Imaging
resize 2 other papers
2 later
2304.09790 (2023-04)
AMT: All-Pairs Multi-Field Transforms for Efficient Frame Interpolation
2407.14126 (2024-07)
Mono-ViFI: A Unified Learning Framework for Self-supervised Single- and Multi-frame Monocular Depth Estimation
get_robust_weight 1 other paper
1 later
2407.14126 (2024-07)
Mono-ViFI: A Unified Learning Framework for Self-supervised Single- and Multi-frame Monocular Depth Estimation
read 1 other paper
1 dated earlier
1409.1556 (2014-09)
Very Deep Convolutional Networks for Large-Scale Image Recognition

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

Prevailing video frame interpolation algorithms, that generate the intermediate frames from consecutive inputs, typically rely on complex model architectures with heavy parameters or large delay, hindering them from diverse real-time applications. In this work, we devise an efficient encoder-decoder based network, termed IFRNet, for fast intermediate frame synthesizing. It first extracts pyramid features from given inputs, and then refines the bilateral intermediate flow fields together with a powerful intermediate feature until generating the desired output. The gradually refined intermediate feature can not only facilitate intermediate flow estimation, but also compensate for contextual details, making IFRNet do not need additional synthesis or refinement module. To fully release its potential, we further propose a novel task-oriented optical flow distillation loss to focus on learning the useful teacher knowledge towards frame synthesizing. Meanwhile, a new geometry consistency regularization term is imposed on the gradually refined intermediate features to keep better structure layout. Experiments on various benchmarks demonstrate the excellent performance and fast inference speed of proposed approaches. Code is available at https: //github.com/ltkong218/IFRNet.

For agents

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

get_harvested_code_for_paper("2205.14620")
get_code_for_paper("2205.14620")
have("2205.14620")

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

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

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

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

Connect an agent — have() is free.