SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2209.12213 · ECCV · 2022

ECO-TR: Efficient Correspondences Finding Via Coarse-to-Fine Refinement

Chao Chen, Rongrong Ji, Shouhong Ding, Yunhang Shen, Xingyu Chen, Ruixin Zhang, Dongli Tan, Jiang-Jiang Liu

arXiv · PDF · Open in the Atlas

Code that ran

11 of 13 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; 1 honoured the contract we drafted, 0 violated it and 6 have no contract verdict; 4 failures of our instrument; 2 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/2209.12213.json · badge: /api/ran/2209.12213.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
dltan7/ECO-TR community (classifier label)
classifier basis not recorded on the link
11 ran · 2 no recorded run
FunctionStatusWhere it lives
conv1x1 Ran
ran; our contract draft was wrong, not the code
dltan7/ECO-TR/src/models/base/resnet.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from medaitech/scrd4ad, is pointer only (licence: NONE) · get_code("2a80220dabcb742a")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from medaitech/scrd4ad, 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.

conv3x3 Ran
ran; our contract draft was wrong, not the code
dltan7/ECO-TR/src/models/base/resnet.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from medaitech/scrd4ad, is pointer only (licence: NONE) · get_code("600ff2c45e0de056")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from medaitech/scrd4ad, 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.

gn Ran
ran on a synthesized input
dltan7/ECO-TR/src/models/base/resnet.py
code served (permissive licence) · get_code("61cff4fbbca8ca11")
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 GroupNorm. 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 = {
    "planes": 16,
    "channel_per_group": 4,
    "max_groups": 32,
}
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 GroupNorm — a GroupNorm output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a GroupNorm 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
lower_config Ran
ran; our contract draft was wrong, not the code
dltan7/ECO-TR/src/utils/misc.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from ShngJZ/PMatch, is pointer only (licence: NONE) · get_code("616a327f53231192")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from ShngJZ/PMatch, 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.

make_divisible Ran
ran, honoured the contract we drafted
dltan7/ECO-TR/src/models/utils/inference_helper.py
code served (permissive licence) · get_code("9224de92ef54dd1c")
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 int, ndim 0, dtype family int, 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 numpy as np

# Test case 1: Basic usage with v, divisor
v1 = 35
divisor1 = 8
min_value1 = None

# Test case 2: With explicit min_value
v2 = 10
divisor2 = 16
min_value2 = 32

# Test case 3: Edge case where new_v < 0.9 * v
v3 = 7
divisor3 = 8
min_value3 = None

ARGS = {
    "v": v1,
    "divisor": divisor1,
    "min_value": min_value1
}
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 int, ndim 0, dtype family int, 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
map_patch_coord_to_image Ran
ran on a synthesized input
dltan7/ECO-TR/src/models/ecotr_modules/query_clustering.py
code served (permissive licence) · get_code("22001c33b543ad95")
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 3, dtype family float, shape (2, 4, 2) 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)

# Analyze the function:
# - patch_coords: indexed with [..., 0] and [..., 1], so needs at least 2D, last dim size 2
# - patch_coords_centroids: indexed with [..., 0] and [..., 1], unsqueeze(1), expand_as(patch_coords[..., 0])
#   So needs 2D, last dim size 2
# - window_size: scalar used in division
# - image_size: indexed with [0] and [1], so needs to be indexable with 2 elements

# Let's build:
# batch_size = 2, num_patches = 4, coords always have 2 elements (x, y)
batch_size = 2
num_patches = 4

# patch_coords: shape (batch_size, num_patches, 2)
patch_coords = torch.randn(batch_size, num_patches, 2)

# patch_coords_centroids: shape (batch_size, 2)
patch_coords_centroids = torch.randn(batch_size, 2)

# window_size: scalar
window_size = 16

# image_size: tuple or list of 2 elements (height, width)
image_size = (32, 48)

ARGS = {
    "patch_coords": patch_coords,
    "patch_coords_centroids": patch_coords_centroids,
    "window_size": window_size,
    "image_size": image_size,
}
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 3, dtype family float, shape (2, 4, 2) — shape (2, 4, 2) 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
nested_tensor_from_tensor_list Ran
ran; our contract draft was wrong, not the code
dltan7/ECO-TR/src/models/ecotr_modules/misc.py
code served (permissive licence) · get_code("764b0c92414d2fed")
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 NestedTensor. 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
from typing import List

torch.manual_seed(0)

# Create a list of 3D tensors with different shapes
# Each tensor has shape (C, H, W) where C=channels, H=height, W=width
tensor_list = [
    torch.randn(3, 4, 5),  # 3 channels, 4 height, 5 width
    torch.randn(3, 6, 7),  # 3 channels, 6 height, 7 width
    torch.randn(3, 5, 6),  # 3 channels, 5 height, 6 width
]

ARGS = {
    "tensor_list": tensor_list
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type NestedTensor — a NestedTensor output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a NestedTensor 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
str2bool Ran
ran on a synthesized input
dltan7/ECO-TR/src/utils/misc.py
code served (permissive licence) · get_code("fb594a42639a8d0e")
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 bool, 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

ARGS = {
    "v": "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 bool, 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
two_images_side_by_side Ran
ran on a synthesized input
dltan7/ECO-TR/src/models/utils/inference_helper.py
code served (permissive licence) · get_code("681727300c4bf594")
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, 6, 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 numpy as np

# Create two small test images with the same shape
# Using shape (height=4, width=3, channels=3) for RGB images
height, width, channels = 4, 3, 3

# Create two distinct images as numpy arrays
img_a = np.random.randint(0, 256, (height, width, channels), dtype=np.uint8)
img_b = np.random.randint(0, 256, (height, width, channels), dtype=np.uint8)

ARGS = {
    "img_a": img_a,
    "img_b": img_b,
}
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 ndarray, ndim 3, dtype family int, shape (4, 6, 3) — shape (4, 6, 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
two_images_side_by_side_batch Ran
ran on a synthesized input
dltan7/ECO-TR/src/models/utils/inference_helper.py
code served (permissive licence) · get_code("2df0e20437c897be")
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 4, dtype family int, shape (2, 4, 6, 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 numpy as np

# Create two small image batches with the same shape
# Format: (batch_size, height, width, channels)
batch_size = 2
height = 4
width = 3
channels = 3

# Create two random image arrays with uint8 dtype (typical for images)
img_a = np.random.randint(0, 256, size=(batch_size, height, width, channels), dtype=np.uint8)
img_b = np.random.randint(0, 256, size=(batch_size, height, width, channels), dtype=np.uint8)

ARGS = {
    "img_a": img_a,
    "img_b": img_b,
}
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 ndarray, ndim 4, dtype family int, shape (2, 4, 6, 3) — shape (2, 4, 6, 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
upper_config Ran
ran on a synthesized input
dltan7/ECO-TR/src/utils/misc.py
code served (permissive licence) · get_code("d2dd10cadb61b3ed")
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 dict. 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

# Analyze the function: upper_config takes a dict_cfg parameter
# The function checks if dict_cfg is a dict, and if so, recursively applies upper_config
# to both keys (converting them to uppercase) and values.
# It handles nested structures.

# Create test cases with nested dictionaries containing various types
ARGS = {
    "dict_cfg": {
        "model_name": "bert",
        "hidden_size": 768,
        "nested": {
            "learning_rate": 0.001,
            "batch_size": 32,
            "deep": {
                "activation": "relu"
            }
        },
        "layers": [1, 2, 3],
        "tensor_data": torch.randn(2, 4)
    }
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
build Not yet run
unverified (harvested, no recorded run)
dltan7/ECO-TR/src/models/ecotr_model.py
code served (permissive licence) · get_code("983f2c32d9f35628")
How it ran

no invocation recorded.

build_transformer Not yet run
unverified (harvested, no recorded run)
dltan7/ECO-TR/src/models/ecotr_modules/transformer.py
code served (permissive licence) · get_code("8ee33b336f178e2f")
How it ran

no invocation recorded.

Also present in other papers' code

Of 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 13 distinct functions with an identity, 6 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 2 the same month, 6 later) and 7 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
conv1x1 112 other papers
28 dated earlier, 1 the same month, 82 later, 1 same year, order not determinable · 6 only as an assembly brick
1512.03385 (2015-12)
Deep Residual Learning for Image Recognition
1806.01531 (2018-06)
Deep Mixture of Experts via Shallow Embedding
1905.12794 (2019-05)
Fashion IQ: A New Dataset Towards Retrieving Images by Natural Language Feedback
and 109 more not named here
conv3x3 111 other papers
29 dated earlier, 1 the same month, 80 later, 1 same year, order not determinable · 6 only as an assembly brick
1512.03385 (2015-12)
Deep Residual Learning for Image Recognition
1806.01531 (2018-06)
Deep Mixture of Experts via Shallow Embedding
1905.12794 (2019-05)
Fashion IQ: A New Dataset Towards Retrieving Images by Natural Language Feedback
and 108 more not named here
nested_tensor_from_tensor_list 55 other papers
16 dated earlier, 39 later · 17 only as an assembly brick
1608.03983 (2016-08)
SGDR: Stochastic Gradient Descent with Warm Restarts
2005.12872 (2020-05)
End-to-End Object Detection with Transformers
2101.01909 (2021-01)
Line Segment Detection Using Transformers without Edges
and 52 more not named here
make_divisible 8 other papers
2 dated earlier, 6 later · 1 only as an assembly brick
1801.04381 (2018-01)
MobileNetV2: Inverted Residuals and Linear Bottlenecks
1811.12596 (2018-11)
Parsing R-CNN for Instance-Level Human Analysis
2305.18980 (2023-05)
Multi-modal Queried Object Detection in the Wild
and 5 more not named here
lower_config 4 other papers
2 dated earlier, 2 later
2104.00680 (2021-04)
LoFTR: Detector-Free Local Feature Matching with Transformers
2204.10144 (2022-04)
A case for using rotation invariant features in state of the art feature matchers
2303.17342 (2023-03)
PMatch: Paired Masked Image Modeling for Dense Geometric Matching
and 1 more not named here
upper_config 1 other paper
1 later
2412.19412 (2024-12)
MINIMA: Modality Invariant Image Matching

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

Modeling sparse and dense image matching within a unified functional correspondence model has recently attracted increasing research interest. However, existing efforts mainly focus on improving matching accuracy while ignoring its efficiency, which is crucial for realworld applications. In this paper, we propose an efficient structure named Efficient Correspondence Transformer (ECO-TR) by finding correspondences in a coarse-to-fine manner, which significantly improves the efficiency of functional correspondence model. To achieve this, multiple transformer blocks are stage-wisely connected to gradually refine the predicted coordinates upon a shared multi-scale feature extraction network. Given a pair of images and for arbitrary query coordinates, all the correspondences are predicted within a single feed-forward pass. We further propose an adaptive query-clustering strategy and an uncertainty-based outlier detection module to cooperate with the proposed framework for faster and better predictions. Experiments on various sparse and dense matching tasks demonstrate the superiority of our method in both efficiency and effectiveness against existing state-of-the-arts. Project page: https://dltan7.github.io/ecotr/.

For agents

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

get_harvested_code_for_paper("2209.12213")
get_code_for_paper("2209.12213")
have("2209.12213")

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

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

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

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

Connect an agent — have() is free.