SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2408.11480 · ECCV · 2024

OAPT: Offset-Aware Partition Transformer for Double JPEG Artifacts Removal

Ming Sun, Chao Zhou, Qiang Zhu, Feiyu Chen, Shuyuan Zhu, Jinhua Hao, Yukang Ding, Cloud Server, Qiao Mo

arXiv · PDF · Open in the Atlas

Code that ran

8 of 11 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; 0 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 7 failures of our instrument; 3 no recorded run), measured 2026-11-22; 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/2408.11480.json · badge: /api/ran/2408.11480.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
QMoQ/OAPT canonical (classifier label)
classifier basis: census
8 ran · 3 no recorded run
FunctionStatusWhere it lives
calculate_weights_indices Ran
ran; our contract draft was wrong, not the code
QMoQ/OAPT/oapt/matlab_functions.py
pointer only (licence: NONE) · get_code("a0a9dee5557b1557")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, QMoQ/OAPT 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.

cubic Ran
ran; our contract draft was wrong, not the code
QMoQ/OAPT/oapt/matlab_functions.py
pointer only (licence: NONE) · get_code("2a78a7db11a55ede")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, QMoQ/OAPT 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_image_paths Ran
ran; our contract draft was wrong, not the code
QMoQ/OAPT/oapt/models/utils_image.py
pointer only (licence: NONE) · get_code("f9d4c247328f3337")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, QMoQ/OAPT 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.

imresize Ran
ran; our contract draft was wrong, not the code
QMoQ/OAPT/oapt/matlab_functions.py
pointer only (licence: NONE) · get_code("c6ed12ec55cbdc95")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, QMoQ/OAPT 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.

is_image_file Ran
ran, violated the contract we drafted
QMoQ/OAPT/oapt/models/utils_image.py
pointer only (licence: NONE) · get_code("226f6afcd57ff476")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, QMoQ/OAPT 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.

reduce_loss Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
QMoQ/OAPT/oapt/losses/loss_util.py
pointer only (licence: NONE) · get_code("a648a03a952822c0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, QMoQ/OAPT 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.

reorder_image Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
QMoQ/OAPT/oapt/models/myb_model.py
pointer only (licence: NONE); the stored copy get_code serves, from AlifAshrafee/Restoring-Without-Forgetting, is pointer only (licence: NONE) · get_code("95067518dc16b3e5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, QMoQ/OAPT 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.

weight_reduce_loss Ran
ran; our contract draft was wrong, not the code
QMoQ/OAPT/oapt/losses/loss_util.py
pointer only (licence: NONE) · get_code("1ba39317ea81871a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, QMoQ/OAPT 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.

patches_from_image Not yet run
unverified (harvested, no recorded run)
QMoQ/OAPT/oapt/models/utils_image.py
pointer only (licence: NONE) · get_code("3984b3ec31e90ef0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, QMoQ/OAPT 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. No invocation recorded.

to_y_channel Not yet run
unverified (harvested, no recorded run)
QMoQ/OAPT/oapt/models/myb_model.py
pointer only (licence: NONE) · get_code("07e474d3f11470e5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, QMoQ/OAPT 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. No invocation recorded.

weighted_loss Not yet run
unverified (harvested, no recorded run)
QMoQ/OAPT/oapt/losses/loss_util.py
pointer only (licence: NONE) · get_code("cf63f8afc13f62a7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, QMoQ/OAPT 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. No invocation recorded.

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 9 are also present in other papers whose code we hold (9 with at least one paper dated earlier, 3 the same month, 7 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
is_image_file 62 other papers
57 dated earlier, 3 later, 2 same year, order not determinable
1609.04802 (2016-09)
Photo-Realistic Single Image Super-Resolution Using a Generative Adversarial Network
1703.07511 (2017-03)
Deep Photo Style Transfer
1710.10916 (2017-10)
StackGAN++: Realistic Image Synthesis with Stacked Generative Adversarial Networks
and 59 more not named here
weighted_loss 44 other papers
26 dated earlier, 1 the same month, 14 later, 3 same year, order not determinable
136790177 (2022 (year only))
Frequency and Spatial Dual Guidance for Image Dehazing
2203.14216 (2022-03)
Efficient and Degradation-Adaptive Network for Real-World Image Super-Resolution
2205.05996 (2022-05)
Blueprint Separable Residual Network for Efficient Image Super-Resolution
and 41 more not named here
reduce_loss 43 other papers
25 dated earlier, 1 the same month, 14 later, 3 same year, order not determinable
136790177 (2022 (year only))
Frequency and Spatial Dual Guidance for Image Dehazing
2203.14216 (2022-03)
Efficient and Degradation-Adaptive Network for Real-World Image Super-Resolution
2205.05996 (2022-05)
Blueprint Separable Residual Network for Efficient Image Super-Resolution
and 40 more not named here
weight_reduce_loss 43 other papers
26 dated earlier, 1 the same month, 13 later, 3 same year, order not determinable
136790177 (2022 (year only))
Frequency and Spatial Dual Guidance for Image Dehazing
2203.14216 (2022-03)
Efficient and Degradation-Adaptive Network for Real-World Image Super-Resolution
2205.05996 (2022-05)
Blueprint Separable Residual Network for Efficient Image Super-Resolution
and 40 more not named here
reorder_image 17 other papers
11 dated earlier, 5 later, 1 same year, order not determinable
2204.04676 (2022-04)
Simple Baselines for Image Restoration
2303.06373 (2023-03)
Recursive Generalization Transformer for Image Super-Resolution
and 14 more not named here
patches_from_image 8 other papers
8 dated earlier
2103.14006 (2021-03)
Designing a Practical Degradation Model for Deep Blind Image Super-Resolution
2203.13278 (2022-03)
Practical Blind Image Denoising via Swin-Conv-UNet and Data Synthesis
2303.00748 (2023-03)
Efficient and Explicit Modelling of Image Hierarchies for Image Restoration
and 5 more not named here
get_image_paths 7 other papers
7 dated earlier
2009.11551 (2020-09)
Residual Feature Distillation Network for Lightweight Image Super-Resolution
2103.14006 (2021-03)
Designing a Practical Degradation Model for Deep Blind Image Super-Resolution
2205.05675 (2022-05)
NTIRE 2022 Challenge on Efficient Super-Resolution: Methods and Results
and 4 more not named here
cubic 5 other papers
4 dated earlier, 1 later
1809.00219 (2018-09)
ESRGAN: Enhanced Super-Resolution Generative Adversarial Networks
2405.04312 (2024-05)
Inf-DiT: Upsampling Any-Resolution Image with Memory-Efficient Diffusion Transformer
2405.09873 (2024-05)
IRSRMamba: Infrared Image Super-Resolution via Mamba-based Wavelet Transform Feature Modulation Model
and 2 more not named here
calculate_weights_indices 2 other papers
1 dated earlier, 1 later
2406.00629 (2024-06)
Correlation Matching Transformation Transformers for UHD Image Restoration
2412.01427 (2024-12)
FoundIR: Unleashing Million-scale Training Data to Advance Foundation Models for Image 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-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Deep learning-based methods have shown remarkable performance in single JPEG artifacts removal task. However, existing methods tend to degrade on double JPEG images, which are prevalent in real-world scenarios. To address this issue, we propose Offset-Aware Partition Transformer for double JPEG artifacts removal, termed as OAPT. We conduct an analysis of double JPEG compression that results in up to four patterns within each 8 × 8 block and design our model to cluster the similar patterns to remedy the difficulty of restoration. Our OAPT consists of two components: compression offset predictor and image reconstructor. Specifically, the predictor estimates pixel offsets between the first and second compression, which are then utilized to divide different patterns. The reconstructor is mainly based on several Hybrid Partition Attention Blocks (HPAB), combining vanilla window-based self-attention and sparse attention for clustered pattern features. Extensive experiments demonstrate that OAPT outperforms the state-of-the-art method by more than 0.16dB in double JPEG image restoration task. Moreover, without increasing any computation cost, the pattern clustering module in HPAB can serve as a plugin to enhance other transformer-based image restoration methods. The code will be available at https://github.com/QMoQ/OAPT.git.

For agents

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

get_harvested_code_for_paper("2408.11480")
get_code_for_paper("2408.11480")
have("2408.11480")

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

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

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

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

Connect an agent — have() is free.