SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2207.10852 · ECCV · 2022

Spatio-Temporal Deformable Attention Network for Video Deblurring

Hongxun Yao, Huicong Zhang

arXiv · PDF · Open in the Atlas

Code that ran

12 of 12 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; 3 honoured the contract we drafted, 0 violated it and 5 have no contract verdict; 4 failures 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/2207.10852.json · badge: /api/ran/2207.10852.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
huicongzhang/stdan canonical (classifier label)
classifier basis not recorded on the link
12 ran · 0 no recorded run
FunctionStatusWhere it lives
PSNR Ran
ran on a synthesized input
huicongzhang/stdan/losses/multi_loss.py
code served (permissive licence) · get_code("933f49a6f925621f")
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

torch.manual_seed(0)

# The function expects:
# - output: a tensor with shape (batch, channels, height, width)
# - target: a tensor with shape (batch, channels, height, width)
# - max_val: a float (default 1.0)
# - shave: an int (default 4)

# Create small tensors with batch=2, channels=3, height=12, width=4
# (using distinct sizes so dimensions are probing-friendly)
batch_size = 2
channels = 3
height = 12
width = 4

output = torch.rand(batch_size, channels, height, width)
target = torch.rand(batch_size, channels, height, width)

max_val = 1.0
shave = 4

ARGS = {
    "output": output,
    "target": target,
    "max_val": max_val,
    "shave": shave,
}
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
conv Ran
ran; our contract draft was wrong, not the code
huicongzhang/stdan/models/submodules.py
pointer only (licence: MIT); the stored copy get_code serves, from xy-boy/blind-satellite-vsr, is pointer only (licence: NONE) · get_code("678eeae42f3728ec")
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.

count_parameters Ran
ran, honoured the contract we drafted
huicongzhang/stdan/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_same_padding Ran
ran, honoured the contract we drafted
huicongzhang/stdan/models/model/blocks.py
pointer only (licence: MIT); the stored copy get_code serves, from xy-boy/blind-satellite-vsr, is pointer only (licence: NONE) · get_code("4ec1f46edd412686")
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.

get_weight_parameters Ran
ran; our contract draft was wrong, not the code
huicongzhang/stdan/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.

l1Loss Ran
ran on a synthesized input
huicongzhang/stdan/losses/multi_loss.py
code served (permissive licence) · get_code("090e64b28e61cd7f")
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 need to be the same shape for L1Loss
# Using batch size 2, feature dim 4
output = torch.randn(2, 4)
target = torch.randn(2, 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
load_file_list Ran
ran on a synthesized input
huicongzhang/stdan/datasets/make_dataset.py
code served (permissive licence) · get_code("fc6f52f692c85fca")
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 os
import tempfile
import shutil
import numpy as np

# Create a temporary directory structure for testing
temp_dir = tempfile.mkdtemp()

# Create subdirectories with files
subdir1 = os.path.join(temp_dir, 'folder1')
subdir2 = os.path.join(temp_dir, 'folder2')
os.makedirs(subdir1)
os.makedirs(subdir2)

# Create some test files
with open(os.path.join(subdir1, 'file1.txt'), 'w') as f:
    f.write('test')
with open(os.path.join(subdir1, 'file2.txt'), 'w') as f:
    f.write('test')
with open(os.path.join(subdir2, 'file3.txt'), 'w') as f:
    f.write('test')
with open(os.path.join(subdir2, '.hidden.txt'), 'w') as f:
    f.write('test')

ARGS = {
    'root_path': temp_dir,
    'child_path': None,
    'is_flatten': False
}
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
load_file_list Ran
ran on a synthesized input
huicongzhang/stdan/datasets/make_json.py
code served (permissive licence) · get_code("4add91bf0b53d34f")
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 os
import numpy as np
import tempfile
import shutil

# Create a temporary directory structure for testing
temp_dir = tempfile.mkdtemp()
try:
    # Create nested directory structure with files
    rgb_dir = os.path.join(temp_dir, 'data', 'RGB')
    os.makedirs(rgb_dir, exist_ok=True)
    
    # Create some test files
    for i in range(3):
        filepath = os.path.join(rgb_dir, f'image_{i}.png')
        with open(filepath, 'w') as f:
            f.write(f'test_image_{i}')
    
    # Create another subdirectory with files
    rgb_dir2 = os.path.join(temp_dir, 'data', 'other', 'RGB')
    os.makedirs(rgb_dir2, exist_ok=True)
    for i in range(2):
        filepath = os.path.join(rgb_dir2, f'image_{i}.png')
        with open(filepath, 'w') as f:
            f.write(f'test_image_{i}')
    
    # Define arguments
    ARGS = {
        'root_path': os.path.join(temp_dir, 'data'),
        'child_path': 'RGB',
        'is_flatten': False
    }
finally:
    # Clean up after defining ARGS (the function will still work)
    pass
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
mseLoss Ran
ran on a synthesized input
huicongzhang/stdan/losses/multi_loss.py
code served (permissive licence) · get_code("c1857e1331f0f261")
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
# MSELoss expects output and target to have the same shape
output = torch.randn(2, 4)
target = torch.randn(2, 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
resnet_block Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
huicongzhang/stdan/models/submodules.py
pointer only (licence: MIT); the stored copy get_code serves, from xy-boy/blind-satellite-vsr, is pointer only (licence: NONE) · get_code("6831a4cc075e6346")
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.

upconv Ran
ran; our contract draft was wrong, not the code
huicongzhang/stdan/models/submodules.py
pointer only (licence: MIT); the stored copy get_code serves, from xy-boy/blind-satellite-vsr, is pointer only (licence: NONE) · get_code("5e2116b26e2147fb")
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.

var_or_cuda Ran
ran, honoured the contract we drafted
huicongzhang/stdan/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 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 7 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 0 the same month, 7 later) and 4 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
4 dated earlier, 3 later
1804.02767 (2018-04)
YOLOv3: An Incremental Improvement
1904.12257 (2019-04)
Spatio-Temporal Filter Adaptive Network for Video Deblurring
1905.05934 (2019-05)
EigenDamage: Structured Pruning in the Kronecker-Factored Eigenbasis
and 4 more not named here
var_or_cuda 4 other papers
3 dated earlier, 1 later
1904.12257 (2019-04)
Spatio-Temporal Filter Adaptive Network for Video Deblurring
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
and 1 more not named here
get_same_padding 3 other papers
2 dated earlier, 1 later
2003.04716 (2020-03)
Deep Blind Video Super-resolution
2004.02501 (2020-04)
Cascaded Deep Video Deblurring Using Temporal Sharpness Prior
2401.07139 (2024-01)
Deep Blind Super-Resolution for Satellite Video
get_weight_parameters 2 other papers
1 dated earlier, 1 later
1904.12257 (2019-04)
Spatio-Temporal Filter Adaptive Network for Video Deblurring
2401.07139 (2024-01)
Deep Blind Super-Resolution for Satellite Video
conv 1 other paper
1 later
2401.07139 (2024-01)
Deep Blind Super-Resolution for Satellite Video
resnet_block 1 other paper
1 later
2401.07139 (2024-01)
Deep Blind Super-Resolution for Satellite Video
upconv 1 other paper
1 later
2401.07139 (2024-01)
Deep Blind Super-Resolution for Satellite Video

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

The key success factor of the video deblurring methods is to compensate for the blurry pixels of the mid-frame with the sharp pixels of the adjacent video frames. Therefore, mainstream methods align the adjacent frames based on the estimated optical flows and fuse the alignment frames for restoration. However, these methods sometimes generate unsatisfactory results because they rarely consider the blur levels of pixels, which may introduce blurry pixels from video frames. Actually, not all the pixels in the video frames are sharp and beneficial for deblurring. To address this problem, we propose the spatio-temporal deformable attention network (STDANet) for video delurring, which extracts the information of sharp pixels by considering the pixel-wise blur levels of the video frames. Specifically, STDANet is an encoder-decoder network combined with the motion estimator and spatio-temporal deformable attention (STDA) module, where motion estimator predicts coarse optical flows that are used as base offsets to find the corresponding sharp pixels in STDA module. Experimental results indicate that the proposed STDANet performs favorably against state-of-the-art methods on the GoPro, DVD, and BSD datasets.

For agents

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

get_harvested_code_for_paper("2207.10852")
get_code_for_paper("2207.10852")
have("2207.10852")

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

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

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

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

Connect an agent — have() is free.