SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2303.08524 · AAAI · 2023

CoordFill: Efficient High-Resolution Image Inpainting via Parameterized Coordinate Querying

Yong Zhang, Jue Wang, Menghan Xia, Chi-Man Pun, Xiaodong Cun, Weihuang Liu

arXiv · PDF · Open in the Atlas

Code that ran

7 of 18 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; 0 honoured the contract we drafted, 0 violated it and 7 have no contract verdict; 0 failures of our instrument; 11 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/2303.08524.json · badge: /api/ran/2303.08524.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
NiFangBaAGe/CoordFill community
Papers with Code archive
7 ran · 11 no recorded run
FunctionStatusWhere it lives
BaseNetwork Ran
ran on a synthesized input · constructed an object; no result was computed
NiFangBaAGe/CoordFill/models/coordfill.py
code served (permissive licence) · get_code("443a27e88886f962")
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, BaseNetwork: 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 torch.nn import init

torch.manual_seed(0)

class SimpleNetwork(nn.Module):
    """Minimal network with Conv, Linear, and BatchNorm layers for testing"""
    def __init__(self):
        super(SimpleNetwork, self).__init__()
        self.conv1 = nn.Conv2d(3, 16, 3, padding=1)
        self.bn1 = nn.BatchNorm2d(16)
        self.linear1 = nn.Linear(16, 8)
        
    def forward(self, x):
        x = self.conv1(x)
        x = self.bn1(x)
        return x

class BaseNetwork(nn.Module):
    def __init__(self):
        super(BaseNetwork, self).__init__()
        self.network = SimpleNetwork()

    @staticmethod
    def modify_commandline_options(parser, is_train):
        return parser

    def print_network(self):
        if isinstance(self, list):
            self = self[0]
        num_params = 0
        for param in self.parameters():
            num_params = num_params + param.numel()
        print('Network [%s] was created. Total number of parameters: %.1f million. To see the architecture, do print(network).' % (type(self).__name__, num_params / 1000000))

    def init_weights(self, init_type='normal', gain=0.02):
        def init_func(m):
            classname = m.__class__.__name__
            if classname.find('BatchNorm2d') != -1:
                if hasattr(m, 'weight') and m.weight is not None:
                    init.normal_(m.weight.data, 1.0, gain)
                if hasattr(m, 'bias') and m.bias is not None:
                    init.constant_(m.bias.data, 0.0)
            elif hasattr(m, 'weight') and (classname.find('Conv') != -1 or classname.find('Linear') != -1):
                if init_type == 'normal':
                    init.normal_(m.weight.data, 0.0, gain)
                elif init_type == 'xavier':
                    init.xavier_normal_(m.weight.data, gain=gain)
                elif init_type == 'xavier_uniform':
                    init.xavier_uniform_(m.weight.data, gain=1.0)
                elif init_type == 'kaiming':
                    init.kaiming_normal_(m.weight.data, a=0, mode='fan_in')
                elif init_type == 'orthogonal':
                    init.orthogonal_(m.weight.data, gain=gain)
                elif init_type == 'none':
                    m.reset_parameters()
                else:
                    raise NotImplementedError('initialization method [%s] is not implemented' % init_type)
                if hasattr(m, 'bias') and m.bias is not None:
                    init.constant_(m.bias.data, 0.0)
        
        self.apply(init_func)
        for m in self.children():
            if hasattr(m, 'init_weights'):
                m.init_weights(init_type, gain)

# Create instance
network = BaseNetwork()

# Define ARGS mapping all parameters
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 BaseNetwork — 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 BaseNetwork 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
ConcatTupleLayer Ran
ran on a synthesized input
NiFangBaAGe/CoordFill/models/coordfill.py
code served (permissive licence) · get_code("62bac9f9e210efc9")
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 2, 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 ConcatTupleLayer(nn.Module):

    def forward(self, x):
        assert isinstance(x, tuple)
        x_l, x_g = x
        assert torch.is_tensor(x_l) or torch.is_tensor(x_g)
        if not torch.is_tensor(x_g):
            return x_l
        return torch.cat(x, dim=1)


INIT_ARGS = {}

ARGS = {
    'x': (torch.randn(2, 4), torch.randn(2, 3))
}

if __name__ == '__main__':
    layer = ConcatTupleLayer(**INIT_ARGS)
    output = layer(**ARGS)
    print("Output shape:", output.shape)
    print("Output:", output)
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 2, 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)
FFC_BN_ACT Ran
ran on a synthesized input · constructed an object; no result was computed
NiFangBaAGe/CoordFill/models/coordfill.py
code served (permissive licence) · get_code("1fbf7982390f137b")
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, FFC_BN_ACT: 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)

# Define SpectralTransform and SELayer as they are referenced but not provided
class SpectralTransform(nn.Module):
    def __init__(self, in_channels, out_channels, stride, groups, enable_lfu, **kwargs):
        super(SpectralTransform, self).__init__()
        self.conv = nn.Conv2d(in_channels, out_channels, kernel_size=1, stride=1, padding=0, groups=groups, bias=False)
    
    def forward(self, x):
        if torch.is_tensor(x):
            return self.conv(x)
        return 0

class SELayer(nn.Module):
    def __init__(self, channel, **kwargs):
        super(SELayer, self).__init__()
        self.fc = nn.Linear(channel, channel)
    
    def forward(self, x):
        return x

# Create minimal valid arguments for FFC
ARGS = {
    'in_channels': 8,
    'out_channels': 16,
    'kernel_size': 3,
    'ratio_gin': 0.5,
    'ratio_gout': 0.5,
    'stride': 1,
    'padding': 1,
    'dilation': 1,
    'groups': 1,
    'bias': False,
    'enable_lfu': True,
    'padding_type': 'reflect',
    'gated': False,
}
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 FFC_BN_ACT — 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 FFC_BN_ACT 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
FourierUnit Ran
ran on a synthesized input · constructed an object; no result was computed
NiFangBaAGe/CoordFill/models/coordfill.py
code served (permissive licence) · get_code("50b8f556e23dc337")
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, FourierUnit: 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_channels': 4,
    'out_channels': 8,
    'groups': 1,
    'spatial_scale_factor': None,
    'spatial_scale_mode': 'bilinear',
    'spectral_pos_encoding': False,
    'use_se': False,
    'se_kwargs': None,
    'ffc3d': False,
    'fft_norm': 'ortho'
}
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 FourierUnit — 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 FourierUnit 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
ParaGenNet Ran
ran on a synthesized input · constructed an object; no result was computed
NiFangBaAGe/CoordFill/models/coordfill.py
code served (permissive licence) · get_code("6fee4cc5e77c63d6")
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, ParaGenNet: 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 a simple model that outputs a tensor with shape (batch, ngf*8, height, width)
class SimpleFeatureExtractor(nn.Module):
    def __init__(self):
        super(SimpleFeatureExtractor, self).__init__()
        self.conv = nn.Conv2d(3, 512, kernel_size=3, padding=1)
    
    def forward(self, x):
        return self.conv(x)

# Create instances for the arguments
num_out = 3
scale_injection = True

# Create the model to be passed to forward/mask_predict
model = SimpleFeatureExtractor()

# Create input tensors
# x: low resolution input (batch=2, channels=3, height=4, width=5)
x = torch.randn(2, 3, 4, 5)

# x_hr: high resolution input (batch=2, channels=3, height=8, width=10)
x_hr = torch.randn(2, 3, 8, 10)

# mask: for mask_predict (batch=2, channels=1, height=8, width=10)
mask = torch.randint(0, 2, (2, 1, 8, 10)).float()

ARGS = {
    "num_out": num_out,
    "scale_injection": scale_injection,
}
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 ParaGenNet — 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 ParaGenNet 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
PixelQueryNet Ran
ran on a synthesized input · constructed an object; no result was computed
NiFangBaAGe/CoordFill/models/coordfill.py
code served (permissive licence) · get_code("ec5b3c5fc06f3065")
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, PixelQueryNet: the run constructed the object and did not call it, so no result was computed. 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)

ARGS = {
    'downsampling': 2,
    'num_inputs': 13,
    'num_outputs': 3,
    'width': 64,
    'depth': 5,
    'coordinates': 'cosine',
    'no_one_hot': False,
    'lr_instance': False,
}
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 PixelQueryNet — 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 PixelQueryNet 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
SELayer Ran
ran on a synthesized input · constructed an object; no result was computed
NiFangBaAGe/CoordFill/models/coordfill.py
code served (permissive licence) · get_code("a59dece88a263461")
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, SELayer: 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 SELayer(nn.Module):

    def __init__(self, channel, reduction=16):
        super(SELayer, self).__init__()
        self.avg_pool = nn.AdaptiveAvgPool2d(1)
        self.fc = nn.Sequential(nn.Linear(channel, channel // reduction, bias=False), nn.ReLU(), nn.Linear(channel // reduction, channel, bias=False), nn.Sigmoid())

    def forward(self, x):
        b, c, _, _ = x.size()
        y = self.avg_pool(x).view(b, c)
        y = self.fc(y).view(b, c, 1, 1)
        res = x * y.expand_as(x)
        return res

ARGS = {
    "channel": 64,
    "reduction": 16
}
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 SELayer — 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 SELayer 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
AttFFC Not yet run
unverified (harvested, no recorded run)
NiFangBaAGe/CoordFill/models/coordfill.py
code served (permissive licence) · get_code("9cf9b865af2e1c2d")
How it ran

no invocation recorded.

AttFFCResNetGenerator Not yet run
unverified (harvested, no recorded run)
NiFangBaAGe/CoordFill/models/coordfill.py
code served (permissive licence) · get_code("42961bc165cc995c")
How it ran

no invocation recorded.

CoordFill Not yet run
unverified (harvested, no recorded run)
NiFangBaAGe/CoordFill/models/coordfill.py
code served (permissive licence) · get_code("771402ef412f4280")
How it ran

no invocation recorded.

CoordFillGenerator Not yet run
unverified (harvested, no recorded run)
NiFangBaAGe/CoordFill/models/coordfill.py
code served (permissive licence) · get_code("5ce9dfb242e8a34b")
How it ran

no invocation recorded.

FFC Not yet run
unverified (harvested, no recorded run)
NiFangBaAGe/CoordFill/models/coordfill.py
code served (permissive licence) · get_code("0a70b66723b3cedd")
How it ran

no invocation recorded.

FFCResNetGenerator Not yet run
unverified (harvested, no recorded run)
NiFangBaAGe/CoordFill/models/coordfill.py
code served (permissive licence) · get_code("fe401746b27bf76b")
How it ran

no invocation recorded.

FFCResnetBlock Not yet run
unverified (harvested, no recorded run)
NiFangBaAGe/CoordFill/models/coordfill.py
code served (permissive licence) · get_code("7eba59f96acf99cd")
How it ran

no invocation recorded.

LearnableSpatialTransformWrapper Not yet run
unverified (harvested, no recorded run)
NiFangBaAGe/CoordFill/models/coordfill.py
code served (permissive licence) · get_code("ab3392be53d55e96")
How it ran

no invocation recorded.

MLPModel Not yet run
unverified (harvested, no recorded run)
NiFangBaAGe/CoordFill/models/coordfill.py
code served (permissive licence) · get_code("a31edbc4f9e59c23")
How it ran

no invocation recorded.

SpectralTransform Not yet run
unverified (harvested, no recorded run)
NiFangBaAGe/CoordFill/models/coordfill.py
code served (permissive licence) · get_code("1a5021c2953d66fe")
How it ran

no invocation recorded.

_get_coords Not yet run
unverified (harvested, no recorded run)
NiFangBaAGe/CoordFill/models/coordfill.py
code served (permissive licence) · get_code("03bfb68584c430f0")
How it ran

no invocation recorded.

Also present in other papers' code

Of 18 samples lifted from this paper's linked repositories, 18 carry a function identity and 0 do not. Of the 18 distinct functions with an identity, 3 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 3 later) and 15 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
FFC
brick of this paper's assembly: helper
3 other papers
3 later
2405.05663 (2024-05)
RPBG: Towards Robust Neural Point-based Graphics in the Wild
2411.07231 (2024-11)
Watermark Anything with Localized Messages
2602.03013 (2026-02)
Thinking inside the Convolution for Image Inpainting: Reconstructing Texture via Structure under Global and Local Side
LearnableSpatialTransformWrapper
brick of this paper's assembly: helper
2 other papers
2 later
2411.07231 (2024-11)
Watermark Anything with Localized Messages
2602.03013 (2026-02)
Thinking inside the Convolution for Image Inpainting: Reconstructing Texture via Structure under Global and Local Side
ConcatTupleLayer
brick of this paper's assembly: helper
1 other paper
1 later
2602.03013 (2026-02)
Thinking inside the Convolution for Image Inpainting: Reconstructing Texture via Structure under Global and Local Side

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

Image inpainting aims to fill the missing hole of the input. It is hard to solve this task efficiently when facing highresolution images due to two reasons: (1) Large reception field needs to be handled for high-resolution image inpainting. (2) The general encoder and decoder network synthesizes many background pixels synchronously due to the form of the image matrix. In this paper, we try to break the above limitations for the first time thanks to the recent development of continuous implicit representation. In detail, we downsample and encode the degraded image to produce the spatialadaptive parameters for each spatial patch via an attentional Fast Fourier Convolution (FFC)-based parameter generation network. Then, we take these parameters as the weights and biases of a series of multi-layer perceptron (MLP), where the input is the encoded continuous coordinates and the output is the synthesized color value. Thanks to the proposed structure, we only encode the high-resolution image in a relatively low resolution for larger reception field capturing. Then, the continuous position encoding will be helpful to synthesize the photo-realistic high-frequency textures by re-sampling the coordinate in a higher resolution. Also, our framework enables us to query the coordinates of missing pixels only in parallel, yielding a more efficient solution than the previous methods. Experiments show that the proposed method achieves real-time performance on the 2048×2048 images using a single GTX 2080 Ti GPU and can handle 4096×4096 images, with much better performance than existing state-ofthe-art methods visually and numerically. The code is available at: https://github.com/NiFangBaAGe/CoordFill.

For agents

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

get_harvested_code_for_paper("2303.08524")
get_code_for_paper("2303.08524")
have("2303.08524")

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

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

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

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

Connect an agent — have() is free.