Papers › Fine-tuning CNN Image Retrieval with No Human Annotation

Fine-tuning CNN Image Retrieval with No Human Annotation

3 Nov 2017arXiv:1711.02512archive 2025-07-28

Filip Radenović, Giorgos Tolias, Ondřej Chum

Image descriptors based on activations of Convolutional Neural Networks (CNNs) have become dominant in image retrieval due to their discriminative power, compactness of representation, and search efficiency. Training of CNNs, either from scratch or fine-tuning, requires a large amount of annotated data, where a high quality of annotation is often crucial. In this work, we propose to fine-tune CNNs for image retrieval on a large collection of unordered images in a fully automated manner. Reconstructed 3D models obtained by the state-of-the-art retrieval and structure-from-motion methods guide the selection of the training data. We show that both hard-positive and hard-negative examples, selected by exploiting the geometry and the camera positions available from the 3D models, enhance the performance of particular-object retrieval. CNN descriptor whitening discriminatively learned from the same training data outperforms commonly used PCA whitening. We propose a novel trainable Generalized-Mean (GeM) pooling layer that generalizes max and average pooling and show that it boosts retrieval performance. Applying the proposed method to the VGG network achieves state-of-the-art performance on the standard benchmarks: Oxford Buildings, Paris, and Holidays datasets.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="1711.02512")

Code

Syntology Ran 3 of 24 code samples harvested from 4 repositories linked to this paper; 21 have no recorded run. Of those that ran: 1 ran · honoured contract; 1 ran · our draft was wrong; 1 ran with no contract checked.

By repository: official repository: 9 samples from 1 repository, 2 ran; community (archive-listed): 15 samples from 3 repositories, 1 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

14 repositories listed; official and paper-mentioned ones first.

filipradenovic/cnnimageretrieval-pytorch officialmentioned on GitHubpytorchMIT report
RuibinMa/comp755project-ruibinma mentioned on GitHubpytorch report
almazan/deep-image-retrieval mentioned on GitHubpytorchBSD-3-Clause report
filipradenovic/cnnimageretrieval mentioned on GitHubpytorchMIT report
layer6ai-labs/GSS mentioned on GitHubtf report
naver/deep-image-retrieval mentioned on GitHubpytorchBSD-3-Clause report
nikosefth/freedom mentioned on GitHubpytorchMIT report
osimeoni/DSM mentioned on GitHubMIT report
raojay7/cnnimageretrieval-pytorch mentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

24 samples harvested; 3 ran; 1 honoured the contract we drafted; 21 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
1ran · our draft was wrong
1ran
21unverified

Licence: 2 of the 24 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 4 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

gem filipradenovic/cnnimageretrieval-pytorch/cirtorch/layers/functional.py official repository ran · our draft was wrong MIT (permissive) · ad695e1e64bd704c · report
pil_loader filipradenovic/cnnimageretrieval-pytorch/cirtorch/datasets/datahelpers.py official repository ran · honoured contract MIT (permissive) · f321f54723433661 · report
accimage_loader filipradenovic/cnnimageretrieval-pytorch/cirtorch/datasets/datahelpers.py official repository unverified MIT (permissive) · 404fb2b2daa1ae78 · report
cid2filename filipradenovic/cnnimageretrieval-pytorch/cirtorch/datasets/datahelpers.py official repository unverified MIT (permissive) · 242b9d747b7506cc · report
compute_map filipradenovic/cnnimageretrieval-pytorch/cirtorch/utils/evaluate.py official repository unverified MIT (permissive) · 9456f5818ed5a150 · report
configdataset filipradenovic/cnnimageretrieval-pytorch/cirtorch/datasets/testdataset.py official repository unverified MIT (permissive) · 0de66b45ecd14bcb · report
extract_ss filipradenovic/cnnimageretrieval-pytorch/cirtorch/networks/imageretrievalnet.py official repository unverified MIT (permissive) · 45136331921829ac · report
mac filipradenovic/cnnimageretrieval-pytorch/cirtorch/layers/functional.py official repository unverified MIT (permissive) · d57f881947d223c7 · report
spoc filipradenovic/cnnimageretrieval-pytorch/cirtorch/layers/functional.py official repository unverified MIT (permissive) · 40aedf01731c3391 · report
compute_ap raojay7/cnnimageretrieval-pytorch/cirtorch/utils/evaluate.py community (archive-listed) ran MIT (permissive) · a07ad22c46aa3105 · report
calculate_rankings nikosefth/freedom/utils_retrieval.py community (archive-listed) unverified MIT (permissive) · 2c4e0f8cfef1ae02 · report
compute_map raojay7/cnnimageretrieval-pytorch/cirtorch/utils/evaluate.py community (archive-listed) unverified MIT (permissive) · 263a271470139cb0 · report
config_imname raojay7/cnnimageretrieval-pytorch/cirtorch/datasets/testdataset.py community (archive-listed) unverified MIT (permissive) · 49cf1f4ce52e9613 · report
config_qimname raojay7/cnnimageretrieval-pytorch/cirtorch/datasets/testdataset.py community (archive-listed) unverified MIT (permissive) · 91c5ae2396603107 · report
configdataset raojay7/cnnimageretrieval-pytorch/cirtorch/datasets/testdataset.py community (archive-listed) unverified MIT (permissive) · 573436a0c32c7255 · report
get_word_indices nikosefth/freedom/utils.py community (archive-listed) unverified MIT (permissive) · 5d4f354290316732 · report
metrics_calc nikosefth/freedom/utils_retrieval.py community (archive-listed) unverified MIT (permissive) · 4e43c182191e355c · report
prepare_dataset nikosefth/freedom/utils_retrieval.py community (archive-listed) unverified MIT (permissive) · 4da573acef3a31a2 · report
read_corpus_features nikosefth/freedom/utils_features.py community (archive-listed) unverified MIT (permissive) · dd5302cc60db6a97 · report
read_dataset_features nikosefth/freedom/utils_features.py community (archive-listed) unverified MIT (permissive) · 29c92368e3c825e3 · report
setup_device nikosefth/freedom/utils.py community (archive-listed) unverified MIT (permissive) · 777f1dfa3b9a30cc · report
text_list_to_features nikosefth/freedom/utils.py community (archive-listed) unverified MIT (permissive) · f25d297c260dff44 · report
train RuibinMa/comp755project-ruibinma/cirtorch/examples/train_colon.py community (archive-listed) unverified no licence file found · pointer only · c46a359503f53583 · report
validate RuibinMa/comp755project-ruibinma/cirtorch/examples/train_colon.py community (archive-listed) unverified no licence file found · pointer only · fab22d2d060c94a4 · report

Tasks

Image RetrievalRetrieval

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Image Retrieval ROxford (Hard) R–GeM mAP 38.5 #13 of 23 Archive leaderboard report
Image Retrieval ROxford (Medium) R–GeM mAP 64.7 #13 of 23 Archive leaderboard report
Image Retrieval RParis (Hard) R–GeM mAP 56.3 #11 of 23 Archive leaderboard report
Image Retrieval RParis (Medium) R–GeM mAP 77.2 #10 of 23 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

ConvolutionDense ConnectionsDropoutMax PoolingPCAReLUSoftmax

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections