SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1904.12257 · 2019

Spatio-Temporal Filter Adaptive Network for Video Deblurring

arXiv · PDF · Open in the Atlas

Code that ran

7 of 7 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 1 violated it and 3 have no contract verdict; 1 failure of our instrument; 0 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/1904.12257.json · badge: /api/ran/1904.12257.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
sczhou/STFAN community (classifier label)
classifier basis not recorded on the link
7 ran · 0 no recorded run
FunctionStatusWhere it lives
PSNR Ran
ran, violated the contract we drafted
sczhou/STFAN/losses/multiscaleloss.py
pointer only (licence: MIT); the stored copy get_code serves, from redrock303/revisiting-temporal-alignment-for-video-restoration, is pointer only (licence: NONE) · get_code("1a63d78c6d1a0024")
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 redrock303/revisiting-temporal-alignment-for-video-restoration, 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.

count_parameters Ran
ran, honoured the contract we drafted
sczhou/STFAN/utils/network_utils.py
pointer only (licence: MIT); the stored copy get_code serves, from sleepymalc/miss, is pointer only (licence: NONE) · get_code("df23da82fbd7ff7b")
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 sleepymalc/miss, 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.

get_weight_parameters Ran
ran; our contract draft was wrong, not the code
sczhou/STFAN/utils/network_utils.py
pointer only (licence: MIT); the stored copy get_code serves, from xy-boy/blind-satellite-vsr, is pointer only (licence: NONE) · get_code("00743d6b5327d649")
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 xy-boy/blind-satellite-vsr, 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.

mseLoss Ran
ran on a synthesized input
sczhou/STFAN/losses/multiscaleloss.py
code served (permissive licence) · get_code("3d11904eb8112e2d")
How it ran

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

import torch
import torch.nn as nn

torch.manual_seed(0)

# Create small tensors for output and target
# Both should have the same shape for MSELoss
output = torch.randn(2, 4)  # batch size 2, dimension 4
target = torch.randn(2, 4)  # batch size 2, dimension 4

ARGS = {
    'output': output,
    'target': target
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
perceptualLoss Ran
ran on a synthesized input
sczhou/STFAN/losses/multiscaleloss.py
code served (permissive licence) · get_code("80766eb7a915cf75")
How it ran

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

import torch
import torch.nn as nn

torch.manual_seed(0)

# Create a minimal VGG-like network that returns a list of 3 feature maps
class MinimalVGG(nn.Module):
    def __init__(self):
        super().__init__()
        self.conv1_2 = nn.Conv2d(3, 8, kernel_size=3, padding=1)
        self.conv2_2 = nn.Conv2d(8, 16, kernel_size=3, padding=1)
        self.conv3_3 = nn.Conv2d(16, 32, kernel_size=3, padding=1)
    
    def forward(self, x):
        # x shape: (batch, 3, height, width)
        x = self.conv1_2(x)
        feat1 = x.clone()
        
        x = self.conv2_2(x)
        feat2 = x.clone()
        
        x = self.conv3_3(x)
        feat3 = x.clone()
        
        return [feat1, feat2, feat3]

vggnet = MinimalVGG()

# Create fake and real images: (batch=2, channels=3, height=4, width=4)
fakeIm = torch.randn(2, 3, 4, 4)
realIm = torch.randn(2, 3, 4, 4)

ARGS = {
    'fakeIm': fakeIm,
    'realIm': realIm,
    'vggnet': vggnet
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
readPFM Ran
ran on a synthesized input
sczhou/STFAN/utils/imgio_gen.py
code served (permissive licence) · get_code("0564ba38597daf7c")
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 re
import numpy as np
import tempfile
import os

# Create a temporary PFM file for testing
def create_test_pfm_file():
    # Create a simple PFM file (color image, 2x3 pixels)
    temp_file = tempfile.NamedTemporaryFile(mode='wb', suffix='.pfm', delete=False)
    
    # Write header
    temp_file.write(b'PF\n')  # Color format
    temp_file.write(b'2 3\n')  # width=2, height=3
    temp_file.write(b'1.0\n')  # scale=1.0, positive means big-endian
    
    # Write image data (2x3x3 = 18 floats in big-endian)
    # Create dummy data
    data = np.ones((3, 2, 3), dtype='>f')  # height, width, channels in big-endian
    data.tofile(temp_file)
    
    temp_file.close()
    return temp_file.name

pfm_file_path = create_test_pfm_file()

ARGS = {
    'file': pfm_file_path
}
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
var_or_cuda Ran
ran, honoured the contract we drafted
sczhou/STFAN/utils/network_utils.py
pointer only (licence: MIT); the stored copy get_code serves, from xy-boy/blind-satellite-vsr, is pointer only (licence: NONE) · get_code("6b1ad2156e46dae6")
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 xy-boy/blind-satellite-vsr, 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.

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 5 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 5 later) and 2 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
count_parameters 7 other papers
1 dated earlier, 6 later
1804.02767 (2018-04)
YOLOv3: An Incremental Improvement
1905.05934 (2019-05)
EigenDamage: Structured Pruning in the Kronecker-Factored Eigenbasis
2006.12250 (2020-06)
Pix2Vox++: Multi-scale Context-aware 3D Object Reconstruction from Single and Multiple Images
and 4 more not named here
var_or_cuda 4 other papers
4 later
2006.03761 (2020-06)
GRNet: Gridding Residual Network for Dense Point Cloud Completion
2006.12250 (2020-06)
Pix2Vox++: Multi-scale Context-aware 3D Object Reconstruction from Single and Multiple Images
2207.10852 (2022-07)
Spatio-Temporal Deformable Attention Network for Video Deblurring
and 1 more not named here
readPFM 3 other papers
1 dated earlier, 2 later
1409.1556 (2014-09)
Very Deep Convolutional Networks for Large-Scale Image Recognition
1910.00130 (2019-10)
Track to Reconstruct and Reconstruct to Track
1912.04958 (2019-12)
Analyzing and Improving the Image Quality of StyleGAN
get_weight_parameters 2 other papers
2 later
2207.10852 (2022-07)
Spatio-Temporal Deformable Attention Network for Video Deblurring
2401.07139 (2024-01)
Deep Blind Super-Resolution for Satellite Video
PSNR 1 other paper
1 later
2111.15288 (2021-11)
Revisiting Temporal Alignment for Video Restoration

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

Video deblurring is a challenging task due to the spatially variant blur caused by camera shake, object motions, and depth variations, etc. Existing methods usually estimate optical flow in the blurry video to align consecutive frames or approximate blur kernels. However, they tend to generate artifacts or cannot effectively remove blur when the estimated optical flow is not accurate. To overcome the limitation of separate optical flow estimation, we propose a Spatio-Temporal Filter Adaptive Network (STFAN) for the alignment and deblurring in a unified framework. The proposed STFAN takes both blurry and restored images of the previous frame as well as blurry image of the current frame as input, and dynamically generates the spatially adaptive filters for the alignment and deblurring. We then propose the new Filter Adaptive Convolutional (FAC) layer to align the deblurred features of the previous frame with the current frame and remove the spatially variant blur from the features of the current frame. Finally, we develop a reconstruction network which takes the fusion of two transformed features to restore the clear frames. Both quantitative and qualitative evaluation results on the benchmark datasets and real-world videos demonstrate that the proposed algorithm performs favorably against state-of-the-art methods in terms of accuracy, speed as well as model size.

For agents

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

get_harvested_code_for_paper("1904.12257")
get_code_for_paper("1904.12257")
have("1904.12257")

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

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

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

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

Connect an agent — have() is free.