SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2309.05438 · ICCV · 2023

Towards Content-based Pixel Retrieval in Revisited Oxford and Paris

Jae Woo, Kim, Sung-Eui Yoon, Rong Li, Yuchi Huo, Saelyne Yang, Guoyuan An

arXiv · PDF · Open in the Atlas

Code that ran

9 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; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 9 failures of our instrument; 4 no recorded run), measured 2026-11-24; 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/2309.05438.json · badge: /api/ran/2309.05438.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
anguoyuan/pixel_retrieval-segmented_instance_retrieval canonical (classifier label)
classifier basis: census
9 ran · 4 no recorded run
FunctionStatusWhere it lives
AdjustPositiveRanks Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
anguoyuan/pixel_retrieval-segmented_instance_retrieval/evaluation_code/dataset.py
code served (permissive licence) · get_code("c96e035397093fbb")
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 1, dtype family int, shape (4,) 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

# Construct valid arguments for AdjustPositiveRanks
positive_ranks = np.array([2, 5, 8, 11], dtype=np.int32)
junk_ranks = np.array([1, 6, 9], dtype=np.int32)

ARGS = {
    "positive_ranks": positive_ranks,
    "junk_ranks": junk_ranks,
}
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 1, dtype family int, shape (4,) — shape (4,) 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
ParseEasyMediumHardGroundTruth Ran
ran; our contract draft was wrong, not the code
anguoyuan/pixel_retrieval-segmented_instance_retrieval/evaluation_code/dataset.py
code served (permissive licence) · get_code("6d4f93163998dcad")
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, 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 numpy as np

# Create sample ground truth data structure
# Each query has 'easy', 'hard', and 'junk' keys mapping to numpy arrays of indices
ground_truth = [
    {
        'easy': np.array([0, 1, 2]),
        'hard': np.array([3, 4]),
        'junk': np.array([5, 6, 7, 8])
    },
    {
        'easy': np.array([10, 11]),
        'hard': np.array([12, 13, 14]),
        'junk': np.array([15, 16])
    },
    {
        'easy': np.array([20]),
        'hard': np.array([21, 22]),
        'junk': np.array([23, 24, 25])
    }
]

ARGS = {
    'ground_truth': ground_truth
}
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, ndim 2, dtype family float — a tuple output has no array shape of its own; none is stated
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
ReadDatasetFile Ran
ran; our contract draft was wrong, not the code
anguoyuan/pixel_retrieval-segmented_instance_retrieval/evaluation_code/dataset.py
code served (permissive licence) · get_code("62de237434a3a409")
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 numpy as np
from scipy.io import matlab
import tempfile
import os

# Create a minimal .mat file that matches the expected format
def create_test_mat_file():
    """Create a minimal MATLAB .mat file for testing."""
    # Create temporary directory and file
    temp_dir = tempfile.mkdtemp()
    mat_file = os.path.join(temp_dir, "test_dataset.mat")
    
    # Prepare data structures matching what ReadDatasetFile expects
    qimlist = np.array([['query_01.jpg'], ['query_02.jpg']], dtype=object)
    imlist = np.array([['index_01.jpg'], ['index_02.jpg'], ['index_03.jpg']], dtype=object)
    
    # Create ground truth structured array
    gnd_dtype = np.dtype([('easy', 'O'), ('hard', 'O'), ('junk', 'O'), ('bbx', 'O')])
    gnd = np.empty(2, dtype=gnd_dtype)
    
    # First query ground truth
    gnd[0] = (
        np.array([1, 2], dtype=np.int32),  # easy (1-indexed, will be adjusted to 0-indexed)
        np.array([3], dtype=np.int32),      # hard
        np.array([], dtype=np.int32),       # junk
        np.array([[10.0, 20.0, 30.0, 40.0]])  # bbx
    )
    
    # Second query ground truth
    gnd[1] = (
        np.array([2], dtype=np.int32),      # easy
        np.array([1, 3], dtype=np.int32),   # hard
        np.array([], dtype=np.int32),       # junk
        np.array([[15.0, 25.0, 35.0, 45.0]])  # bbx
    )
    
    # Save as .mat file
    matlab.savemat(mat_file, {
        'qimlist': qimlist,
        'imlist': imlist,
        'gnd': gnd
    })
    
    return mat_file

# Create the test file
dataset_file_path = create_test_mat_file()

ARGS = {
    'dataset_file_path': dataset_file_path,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy, tensorflow — 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
compute_ap Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
anguoyuan/pixel_retrieval-segmented_instance_retrieval/evaluation_code/utils/evaluate_pixel.py
code served (permissive licence) · get_code("a07ad22c46aa3105")
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 float64, ndim 0, 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 numpy as np

# Create sample data for compute_ap
# ranks: zero-based ranks of positive images (should be a numpy array or list of integers)
# nres: number of positive images (should be an integer)

ranks = np.array([0, 2, 5, 8])  # Example ranks of positive images
nres = 4  # Number of positive images

ARGS = {
    "ranks": ranks,
    "nres": nres,
}
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 float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
compute_iou Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
anguoyuan/pixel_retrieval-segmented_instance_retrieval/evaluation_code/utils/iou_compute.py
code served (permissive licence) · get_code("5c1d039685bafbdd")
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 numpy as np
import cv2

# Create test_points: a set of points defining a bounding box or polygon
test_points = [
    [10, 20],
    [30, 20],
    [30, 40],
    [10, 40]
]

# Create gt_points: a list of lists of points (multiple ground truth regions)
gt_points = [
    [
        [15, 25],
        [35, 25],
        [35, 45],
        [15, 45]
    ],
    [
        [50, 50],
        [70, 50],
        [70, 70],
        [50, 70]
    ]
]

# Create a sample image (optional, can be None)
image = np.zeros((100, 100, 3), dtype=np.uint8)

ARGS = {
    'test_points': test_points,
    'gt_points': gt_points,
    'image': image,
    'type': 'bbox'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
cv2, 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
compute_iou Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
anguoyuan/pixel_retrieval-segmented_instance_retrieval/evaluation_code/utils/iou_compute_delg.py
code served (permissive licence) · get_code("1a23c5e4a34671bf")
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 cv2
import numpy as np

# Setup for compute_iou function
# The function expects:
# - test_points: array-like of points (converted to int)
# - gt_points: list of lists of points
# - image: optional numpy array (BGR image)
# - type: string 'bbox' or 'segmentation'

# Create test points (single set of coordinates)
test_points = [[10, 20], [50, 20], [50, 60], [10, 60]]

# Create ground truth points (list of lists - multiple objects/polygons possible)
gt_points = [[[15, 25], [55, 25], [55, 65], [15, 65]]]

# Create an optional image (BGR format for cv2)
image = np.zeros((100, 100, 3), dtype=np.uint8)

ARGS = {
    'test_points': test_points,
    'gt_points': gt_points,
    'image': image,
    'type': 'bbox'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
cv2, 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
extract_bounding_box Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
anguoyuan/pixel_retrieval-segmented_instance_retrieval/evaluation_code/utils/iou_compute.py
code served (permissive licence) · get_code("66337892cc8301d2")
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, ndim 4, dtype family int; 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 cv2
import numpy as np

# Create a small test image (height=100, width=150, channels=3)
image = np.random.randint(0, 256, size=(100, 150, 3), dtype=np.uint8)

# Create some test points that form a bounding box region
# Points should be in (x, y) format where x is column and y is row
points = [
    [30, 20],
    [120, 20],
    [120, 80],
    [30, 80]
]

ARGS = {
    "image": image,
    "points": points
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
cv2, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 4, dtype family int — a tuple output has no array shape of its own; none is stated
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
extract_segmentation Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
anguoyuan/pixel_retrieval-segmented_instance_retrieval/evaluation_code/utils/iou_compute.py
code served (permissive licence) · get_code("bfea0e96f2e300a0")
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, ndim 4, dtype family int; 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 cv2
import numpy as np

# Create a small test image (BGR format for OpenCV)
image = np.ones((100, 120, 3), dtype=np.uint8) * 200

# Create a list of points that form a polygon
# Using distinct coordinate values for clarity
points = [
    [10, 20],
    [50, 15],
    [80, 40],
    [70, 80],
    [30, 90],
    [5, 60]
]

ARGS = {
    "image": image,
    "points": points
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
cv2, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 4, dtype family int — a tuple output has no array shape of its own; none is stated
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
wrong_items Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
anguoyuan/pixel_retrieval-segmented_instance_retrieval/evaluation_code/utils/evaluate.py
code served (permissive licence) · get_code("9131b0a6c9b5809e")
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 torch
import numpy as np

torch.manual_seed(0)

# Construct roxford structure
# The function accesses roxford['gnd'][q]['easy'], roxford['gnd'][q]['hard'], roxford['gnd'][q]['junk']
roxford = {
    'gnd': {
        0: {
            'easy': [1, 2, 3],
            'hard': [4, 5],
            'junk': [6]
        }
    }
}

# l is a list of indices
l = [1, 2, 3, 4, 7, 8, 9]

# q is a query index
q = 0

ARGS = {
    'l': l,
    'q': q,
    'roxford': roxford
}
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 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
compute_map Not yet run
unverified (harvested, no recorded run)
anguoyuan/pixel_retrieval-segmented_instance_retrieval/evaluation_code/utils/evaluate_pixel.py
code served (permissive licence) · get_code("e09f485327418d4c")
How it ran

no invocation recorded.

compute_map Not yet run
unverified (harvested, no recorded run)
anguoyuan/pixel_retrieval-segmented_instance_retrieval/evaluation_code/utils/evaluate_pixel.py
code served (permissive licence) · get_code("1380b78f9d584f36")
How it ran

no invocation recorded.

compute_map Not yet run
unverified (harvested, no recorded run)
anguoyuan/pixel_retrieval-segmented_instance_retrieval/evaluation_code/utils/evaluate.py
code served (permissive licence) · get_code("9456f5818ed5a150")
How it ran

no invocation recorded.

name_list Not yet run
unverified (harvested, no recorded run)
anguoyuan/pixel_retrieval-segmented_instance_retrieval/evaluation_code/utils/path_manage.py
code served (permissive licence) · get_code("15282d96802de39c")
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, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 0 later) and 11 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
compute_ap 2 other papers
2 dated earlier
1711.02512 (2017-11)
Fine-tuning CNN Image Retrieval with No Human Annotation
2308.04008 (2023-08)
Coarse-to-Fine: Learning Compact Discriminative Representation for Single-Stage Image Retrieval
compute_map 2 other papers
2 dated earlier
1711.02512 (2017-11)
Fine-tuning CNN Image Retrieval with No Human Annotation
2308.04008 (2023-08)
Coarse-to-Fine: Learning Compact Discriminative Representation for Single-Stage Image Retrieval

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-24.

Repositories linked to this paper

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

Abstract

This paper introduces the first two landmark pixel retrieval benchmarks. Pixel retrieval is segmented instance retrieval. Like semantic segmentation extends classification to the pixel level, pixel retrieval is an extension of image retrieval and offers information about which pixels are related to the query object. In addition to retrieving images for the given query, it helps users quickly identify the query object in true positive images and exclude false positive images by denoting the correlated pixels. Our user study results show pixel-level annotation can significantly improve the user experience. Compared with semantic and instance segmentation, pixel retrieval requires a fine-grained recognition capability for variable-granularity targets. To this end, we propose pixel retrieval benchmarks named PROxford and PRParis, which are based on the widely used image retrieval datasets, ROxford and RParis. Three professional annotators label 5,942 images with two rounds of double-checking and refinement. Furthermore, we conduct extensive experiments and analysis on the SOTA methods in image search, image matching, detection, segmentation, and dense matching using our pixel retrieval benchmarks. Results show that the pixel retrieval task is challenging to these approaches and distinctive from existing problems, suggesting that further research can advance the contentbased pixel-retrieval and thus user search experience. The datasets can be downloaded from this link.

For agents

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

get_harvested_code_for_paper("2309.05438")
get_code_for_paper("2309.05438")
have("2309.05438")

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

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

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

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

Connect an agent — have() is free.