SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1604.01325 · 2016

Deep Image Retrieval: Learning global representations for image search

arXiv · PDF · Open in the Atlas

Code that ran

4 of 9 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 4 have no contract verdict; 0 failures of our instrument; 5 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/1604.01325.json · badge: /api/ran/1604.01325.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
talal579/Deep-image-matching community (classifier label)
classifier basis not recorded on the link
4 ran · 5 no recorded run
FunctionStatusWhere it lives
compute_avg_precision Ran
ran on a synthesized input
talal579/Deep-image-matching/modules/modules_generating_results.py
code served (permissive licence) · get_code("3cd51bd0c251de42")
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 float, 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 numpy as np

torch.manual_seed(0)

# Analyzing the function:
# - y_preds: used with 'in' operator (membership test)
# - y_label: used with 'in' operator (membership test)
# The function checks if y_label is in y_preds

# y_preds should be a container (list, set, tuple, etc.)
# y_label should be a scalar or hashable value

# Creating valid test data:
y_preds = [1, 2, 3, 4, 5]  # A list of predictions
y_label = 3  # A label that exists in y_preds

ARGS = {
    "y_preds": y_preds,
    "y_label": y_label
}
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 float, 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
compute_avg_precision_original Ran
ran on a synthesized input
talal579/Deep-image-matching/modules/modules_generating_results.py
code served (permissive licence) · get_code("10cc69a86fdcafbb")
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 float, 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 numpy as np

torch.manual_seed(0)

# Analyze the function:
# - y_preds: indexed with [i], compared with == to y_label
# - y_label: a scalar value to compare against each element of y_preds
# - len(y_preds) is called
# 
# The function iterates through y_preds and compares each element to y_label
# So y_preds should be a sequence/list of comparable values
# y_label should be a single value

# Create simple test data:
# y_preds: list of 0s and 1s (or any comparable values)
y_preds = [1, 0, 1, 1, 0, 1]
y_label = 1

ARGS = {
    "y_preds": y_preds,
    "y_label": y_label
}
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 float, 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
translate_metric Ran
ran on a synthesized input
talal579/Deep-image-matching/modules/model_plots.py
code served (permissive licence) · get_code("6bd07978a84eaa02")
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 str. 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

ARGS = {
    'x': 'acc'
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
triplet_loss_compute Ran
ran on a synthesized input
talal579/Deep-image-matching/modules/modules_generating_triplets.py
code served (permissive licence) · get_code("36d755b580550445")
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 2, dtype family float, shape (2, 1) 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 small numpy arrays for triplet loss computation
# user_latent: shape (batch_size, latent_dim)
# positive_item_latent: shape (batch_size, latent_dim)
# negative_item_latent: shape (batch_size, latent_dim)

batch_size = 2
latent_dim = 4

user_latent = np.random.randn(batch_size, latent_dim).astype(np.float32)
positive_item_latent = np.random.randn(batch_size, latent_dim).astype(np.float32)
negative_item_latent = np.random.randn(batch_size, latent_dim).astype(np.float32)

margin = 1.0

ARGS = {
    "margin": margin,
    "user_latent": user_latent,
    "positive_item_latent": positive_item_latent,
    "negative_item_latent": negative_item_latent
}
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 2, dtype family float, shape (2, 1) — shape (2, 1) 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
addition Not yet run
unverified (harvested, no recorded run)
talal579/Deep-image-matching/modules/Deep_Retrieval_Siamese_Architecture.py
code served (permissive licence) · get_code("abf97a090f07ec9b")
How it ran

no invocation recorded.

compute_save_features Not yet run
unverified (harvested, no recorded run)
talal579/Deep-image-matching/modules/modules_generating_results.py
code served (permissive licence) · get_code("ec4b37504c1ccb21")
How it ran

no invocation recorded.

deep_retrieval_siamese Not yet run
unverified (harvested, no recorded run)
talal579/Deep-image-matching/modules/Deep_Retrieval_Siamese_Architecture.py
code served (permissive licence) · get_code("b855da94ef41aeca")
How it ran

no invocation recorded.

existed_file Not yet run
unverified (harvested, no recorded run)
talal579/Deep-image-matching/modules/modules_split_data.py
code served (permissive licence) · get_code("d14ec5ffcc37bb27")
How it ran

no invocation recorded.

weighting Not yet run
unverified (harvested, no recorded run)
talal579/Deep-image-matching/modules/Deep_Retrieval_Siamese_Architecture.py
code served (permissive licence) · get_code("a8dbae17a0608ef9")
How it ran

no invocation recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 9 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.

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

We propose a novel approach for instance-level image retrieval. It produces a global and compact fixed-length representation for each image by aggregating many region-wise descriptors. In contrast to previous works employing pre-trained deep networks as a black box to produce features, our method leverages a deep architecture trained for the specific task of image retrieval. Our contribution is twofold: (i) we leverage a ranking framework to learn convolution and projection weights that are used to build the region features; and (ii) we employ a region proposal network to learn which regions should be pooled to form the final global descriptor. We show that using clean training data is key to the success of our approach. To that aim, we use a large scale but noisy landmark dataset and develop an automatic cleaning approach. The proposed architecture produces a global image representation in a single forward pass. Our approach significantly outperforms previous approaches based on global descriptors on standard datasets. It even surpasses most prior works based on costly local descriptor indexing and spatial verification. Additional material is available at www.xrce.xerox.com/Deep-Image-Retrieval.

For agents

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

get_harvested_code_for_paper("1604.01325")
get_code_for_paper("1604.01325")
have("1604.01325")

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

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

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

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

Connect an agent — have() is free.