SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2112.09081 · 2021

CrossLoc: Scalable Aerial Localization Assisted by Multimodal Synthetic Data

arXiv · PDF · Open in the Atlas

Code that ran

10 of 11 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 10 have no contract verdict; 0 failures of our instrument; 1 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/2112.09081.json · badge: /api/ran/2112.09081.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
topo-epfl/crossloc canonical (classifier label)
classifier basis not recorded on the link
9 ran · 1 no recorded run
TOPO-EPFL/CrossLoc-Benchmark-Datasets community (classifier label)
classifier basis not recorded on the link
1 ran · 0 no recorded run
FunctionStatusWhere it lives
coords_world_to_cam Ran
ran on a synthesized input
topo-epfl/crossloc/loss/coord.py
code served (permissive licence) · get_code("78e4e469e6400712")
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 float; no output shape is stated. 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 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

torch.manual_seed(0)

# Create tiny tensors with distinct sizes for different dimensions
batch_size = 2
num_points = 4
spatial_dim = 3

# [B, 3, N] - predicted scene coordinates
scene_coords = torch.randn(batch_size, spatial_dim, num_points)

# [B, 3, N] - ground-truth scene coordinates
gt_coords = torch.randn(batch_size, spatial_dim, num_points)

# [B, 4, 4] - camera-to-world transformation matrices
gt_poses = torch.eye(4).unsqueeze(0).repeat(batch_size, 1, 1)
# Add some rotation/translation to make them non-trivial
gt_poses[0, 0:3, 3] = torch.tensor([1.0, 2.0, 3.0])
gt_poses[1, 0:3, 3] = torch.tensor([0.5, 1.5, 2.5])

ARGS = {
    "scene_coords": scene_coords,
    "gt_coords": gt_coords,
    "gt_poses": gt_poses,
}
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 tuple, ndim 4, 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
get_cam_mat Ran
ran on a synthesized input
topo-epfl/crossloc/loss/coord.py
code served (permissive licence) · get_code("4afa2c066e917e5c")
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 2, dtype family float, shape (3, 3) as a later run recorded it. 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, 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)

ARGS = {
    "width": 640,
    "height": 480,
    "focal_length": 500.0
}
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 2, dtype family float, shape (3, 3) — shape (3, 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
get_output_path Ran
ran on a synthesized input
topo-epfl/crossloc/finetune_decoder_single_task.py
code served (permissive licence) · get_code("f4e2e606ab062829")
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 os

class OptConfig:
    def __init__(self):
        self.scene = 'test_scene'
        self.task = 'segmentation'
        self.encoders = ['coord_', 'rgb']
        self.reuse_coord_encoder = True
        self.unfreeze_coord_encoder = False
        self.session = 'test_session'
        self.grayscale = False
        self.uncertainty = 'epistemic'
        self.fullsize = False
        self.learningrate = 0.0005
        self.epochs = 100
        self.real_data_chunk = 0.8
        self.sim_data_chunk = 0.0
        self.real_only = False
        self.real_data_domain = 'in_place'
        self.tiny = False
        self.network_in = None
        self.debug = False

opt = OptConfig()

ARGS = {
    'opt': opt
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — 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
get_pose_err Ran
ran on a synthesized input
topo-epfl/crossloc/utils/evaluation.py
code served (permissive licence) · get_code("7bca168bac073aa1")
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 1, 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 cv2
import numpy as np

# Create valid 4x4 transformation matrices
# Ground truth pose
gt_pose = np.eye(4, dtype=np.float64)
gt_pose[0:3, 0:3] = np.array([
    [0.9, -0.1, 0.0],
    [0.1, 0.9, 0.0],
    [0.0, 0.0, 1.0]
], dtype=np.float64)
gt_pose[0:3, 3] = np.array([1.0, 2.0, 3.0], dtype=np.float64)

# Estimated pose (slightly different)
est_pose = np.eye(4, dtype=np.float64)
est_pose[0:3, 0:3] = np.array([
    [0.8, -0.15, 0.0],
    [0.15, 0.85, 0.0],
    [0.0, 0.0, 1.0]
], dtype=np.float64)
est_pose[0:3, 3] = np.array([1.1, 2.1, 3.1], dtype=np.float64)

ARGS = {
    'gt_pose': gt_pose,
    'est_pose': est_pose
}
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 1, 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
get_repro_err Ran
ran on a synthesized input
topo-epfl/crossloc/loss/coord.py
code served (permissive licence) · get_code("47eca50cb05380c3")
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 2, dtype family float, shape (2, 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 torch

torch.manual_seed(0)

# Define the arguments
batch_size = 2
num_points = 4
camera_coords = torch.randn(batch_size, 3, num_points)

# Camera intrinsic matrix [3, 3]
cam_mat = torch.tensor([
    [500.0, 0.0, 320.0],
    [0.0, 500.0, 240.0],
    [0.0, 0.0, 1.0]
])

# Pixel grid crop [2, N] - x and y pixel coordinates
pixel_grid_crop = torch.randn(2, num_points)

# Minimum depth scalar
min_depth = 0.1

ARGS = {
    "camera_coords": camera_coords,
    "cam_mat": cam_mat,
    "pixel_grid_crop": pixel_grid_crop,
    "min_depth": min_depth,
}
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 2, dtype family float, shape (2, 4) — shape (2, 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
get_rotation_ned_in_ecef Ran
ran on a synthesized input
TOPO-EPFL/CrossLoc-Benchmark-Datasets/datasets/setup_dataset_utils.py
code served (permissive licence) · get_code("35804146bd7dff48")
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 (3, 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

# The function takes longitude and latitude in degrees
# It converts them to radians and computes a 3x3 rotation matrix
# No complex objects needed - just scalar float values

lon = 45.0  # longitude in degrees
lat = 30.0  # latitude in degrees

ARGS = {
    "lon": lon,
    "lat": lat,
}
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 (3, 3) — shape (3, 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
moving_average Ran
ran on a synthesized input
topo-epfl/crossloc/visualize.py
code served (permissive licence) · get_code("f9086ad3c68ab634")
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 float, shape (6,) 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 a simple dataset for moving average calculation
data_set = np.array([1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0])
periods = 3

ARGS = {
    "data_set": data_set,
    "periods": periods,
}
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 float, shape (6,) — shape (6,) 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
search_directory Ran
ran on a synthesized input
topo-epfl/crossloc/visualize.py
code served (permissive licence) · get_code("f9827104ed8f4c00")
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 os
import tempfile
import shutil

# Create a temporary directory structure with log files for testing
temp_dir = tempfile.mkdtemp()

# Create subdirectories with task names and output.log files
coord_dir = os.path.join(temp_dir, 'experiment_coord_v1')
depth_dir = os.path.join(temp_dir, 'experiment_depth_v2')
normal_dir = os.path.join(temp_dir, 'experiment_normal_v3')
semantics_dir = os.path.join(temp_dir, 'experiment_semantics_v4')

os.makedirs(coord_dir, exist_ok=True)
os.makedirs(depth_dir, exist_ok=True)
os.makedirs(normal_dir, exist_ok=True)
os.makedirs(semantics_dir, exist_ok=True)

# Create output.log files in each directory
coord_log = os.path.join(coord_dir, 'output.log')
depth_log = os.path.join(depth_dir, 'output.log')
normal_log = os.path.join(normal_dir, 'output.log')
semantics_log = os.path.join(semantics_dir, 'output.log')

with open(coord_log, 'w') as f:
    f.write('coord log content')
with open(depth_log, 'w') as f:
    f.write('depth log content')
with open(normal_log, 'w') as f:
    f.write('normal log content')
with open(semantics_log, 'w') as f:
    f.write('semantics log content')

# Test case 1: directory search with keywords
ARGS = {
    'log_path': temp_dir,
    'keywords': ['v1', 'v2']
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — 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
semantics_classification_loss Ran
ran on a synthesized input
topo-epfl/crossloc/loss/semantics.py
code served (permissive licence) · get_code("16fcce4238525871")
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 1, 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
import torch.nn.functional as F

torch.manual_seed(0)

# Build a simple criterion that returns non-aggregated losses per pixel
class SimpleSemanticCriterion(nn.Module):
    def forward(self, logits, labels):
        # logits: [B, C, H, W]
        # labels: [B, H, W]
        # Return per-pixel losses
        batch_size, num_classes, height, width = logits.size()
        logits_flat = logits.permute(0, 2, 3, 1).reshape(-1, num_classes)
        labels_flat = labels.reshape(-1)
        loss = F.cross_entropy(logits_flat, labels_flat, reduction='none')
        return loss.reshape(batch_size, height, width)

# Tiny tensor dimensions
batch_size = 2
num_classes = 4
height = 3
width = 5

# Create arguments
ARGS = {
    'uncertainty': None,
    'semantic_logits': torch.randn(batch_size, num_classes, height, width),
    'uncertainty_map': torch.randn(batch_size, num_classes, height, width),
    'gt_labels': torch.randint(0, num_classes, (batch_size, 1, height, width)),
    'criterion': SimpleSemanticCriterion(),
    'reduction': 'mean'
}
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 tuple, ndim 1, 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
trim_semantic_label Ran
ran on a synthesized input
topo-epfl/crossloc/loss/semantics.py
code served (permissive licence) · get_code("2dd80ba6870059ee")
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 int, shape (2, 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

# Create a sample raw_labels array with the old class IDs
# The array should contain values from the old_class_ls: [0, 1, 2, 3, 6, 9, 17]
raw_labels = np.array([
    [0, 1, 2, 3],
    [6, 9, 17, 0]
], dtype=np.int32)

ARGS = {
    "raw_labels": raw_labels
}
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 int, shape (2, 4) — shape (2, 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
extract_training_info Not yet run
unverified (harvested, no recorded run)
topo-epfl/crossloc/visualize.py
code served (permissive licence) · get_code("61144a3508e0512e")
How it ran

no invocation recorded.

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 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 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.

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 present a visual localization system that learns to estimate camera poses in the real world with the help of synthetic data. Despite significant progress in recent years, most learning-based approaches to visual localization target at a single domain and require a dense database of geo-tagged images to function well. To mitigate the data scarcity issue and improve the scalability of the neural localization models, we introduce TOPO-DataGen, a versatile synthetic data generation tool that traverses smoothly between the real and virtual world, hinged on the geographic camera viewpoint. New large-scale sim-to-real benchmark datasets are proposed to showcase and evaluate the utility of the said synthetic data. Our experiments reveal that synthetic data generically enhances the neural network performance on real data. Furthermore, we introduce CrossLoc, a cross-modal visual representation learning approach to pose estimation that makes full use of the scene coordinate ground truth via self-supervision. Without any extra data, CrossLoc significantly outperforms the state-of-the-art methods and achieves substantially higher real-data sample efficiency. Our code and datasets are all available at https://crossloc.github.io/.

For agents

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

get_harvested_code_for_paper("2112.09081")
get_code_for_paper("2112.09081")
have("2112.09081")

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

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

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

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

Connect an agent — have() is free.