SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2411.12431 · 2024

CV-Cities: Advancing Cross-View Geo-Localization in Global Cities

arXiv · PDF · Open in the Atlas

Code that ran

8 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; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 7 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/2411.12431.json · badge: /api/ran/2411.12431.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
gaoshuang98/cvcities canonical (classifier label)
classifier basis: census
8 ran · 1 no recorded run
FunctionStatusWhere it lives
get_transforms_train Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
gaoshuang98/cvcities/cvcities_base/cvcities_transforms.py
code served (permissive licence) · get_code("c07568f81df29243")
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 albumentations as A
from albumentations.pytorch import ToTensorV2
from albumentations.core.transforms_interface import ImageOnlyTransform

class Cut(ImageOnlyTransform):

    def __init__(self, cutting=None, always_apply=False, p=1.0):
        super(Cut, self).__init__(always_apply, p)
        self.cutting = cutting

    def apply(self, image, **params):
        if self.cutting:
            image = image[self.cutting:-self.cutting, :, :]
        return image

    def get_transform_init_args_names(self):
        return ('size', 'cutting')

def get_transforms_train(image_size_sat, img_size_ground, mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225], ground_cutting=0, crop_size_ratio_min=0.5, crop_size_ratio_max=1.0, crop_p=1):
    satellite_transforms = A.Compose([A.ImageCompression(quality_lower=90, quality_upper=100, p=0.5), A.CenterCrop(height=378, width=378, p=1), A.Resize(image_size_sat[0], image_size_sat[1], interpolation=cv2.INTER_LINEAR_EXACT, p=1.0), A.ColorJitter(brightness=0.15, contrast=0.15, saturation=0.15, hue=0.15, always_apply=False, p=0.5), A.OneOf([A.AdvancedBlur(p=1.0), A.Sharpen(p=1.0)], p=0.3), A.OneOf([A.GridDropout(ratio=0.4, p=1.0), A.CoarseDropout(max_holes=25, max_height=int(0.2 * image_size_sat[0]), max_width=int(0.2 * image_size_sat[0]), min_holes=10, min_height=int(0.1 * image_size_sat[0]), min_width=int(0.1 * image_size_sat[0]), p=1.0)], p=0.3), A.Normalize(mean, std), ToTensorV2()])
    ground_transforms = A.Compose([Cut(cutting=ground_cutting, p=1.0), A.ImageCompression(quality_lower=90, quality_upper=100, p=0.5), A.Resize(img_size_ground[0], img_size_ground[1], interpolation=cv2.INTER_LINEAR_EXACT, p=1.0), A.ColorJitter(brightness=0.15, contrast=0.15, saturation=0.15, hue=0.15, always_apply=False, p=0.5), A.OneOf([A.AdvancedBlur(p=1.0), A.Sharpen(p=1.0)], p=0.3), A.OneOf([A.GridDropout(ratio=0.5, p=1.0), A.CoarseDropout(max_holes=25, max_height=int(0.2 * img_size_ground[0]), max_width=int(0.2 * img_size_ground[0]), min_holes=10, min_height=int(0.1 * img_size_ground[0]), min_width=int(0.1 * img_size_ground[0]), p=1.0)], p=0.3), A.Normalize(mean, std), ToTensorV2()])
    return (satellite_transforms, ground_transforms)

ARGS = {
    'image_size_sat': (256, 256),
    'img_size_ground': (128, 128),
    'mean': [0.485, 0.456, 0.406],
    'std': [0.229, 0.224, 0.225],
    'ground_cutting': 10,
    'crop_size_ratio_min': 0.5,
    'crop_size_ratio_max': 1.0,
    'crop_p': 1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
albumentations, cv2 — 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
get_transforms_train Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
gaoshuang98/cvcities/cvcities_base/transforms.py
code served (permissive licence) · get_code("45dba31600f35c5e")
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 albumentations as A
from albumentations.pytorch import ToTensorV2
from albumentations.core.transforms_interface import ImageOnlyTransform
import numpy as np

class Cut(ImageOnlyTransform):
    def __init__(self, cutting=None, always_apply=False, p=1.0):
        super(Cut, self).__init__(always_apply, p)
        self.cutting = cutting

    def apply(self, image, **params):
        if self.cutting:
            image = image[self.cutting:-self.cutting, :, :]
        return image

    def get_transform_init_args_names(self):
        return ('size', 'cutting')

ARGS = {
    'image_size_sat': (256, 512),
    'img_size_ground': (128, 256),
    'mean': [0.485, 0.456, 0.406],
    'std': [0.229, 0.224, 0.225],
    'ground_cutting': 10
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
albumentations, 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
get_transforms_val Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
gaoshuang98/cvcities/cvcities_base/cvcities_transforms.py
code served (permissive licence) · get_code("31c05b5bf561a457")
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 cv2
import albumentations as A
from albumentations.pytorch import ToTensorV2
from albumentations.core.transforms_interface import ImageOnlyTransform

class Cut(ImageOnlyTransform):
    def __init__(self, cutting=None, always_apply=False, p=1.0):
        super(Cut, self).__init__(always_apply, p)
        self.cutting = cutting

    def apply(self, image, **params):
        if self.cutting:
            image = image[self.cutting:-self.cutting, :, :]
        return image

    def get_transform_init_args_names(self):
        return ('size', 'cutting')

def get_transforms_val(image_size_sat, img_size_ground, mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225], ground_cutting=0):
    satellite_transforms = A.Compose([A.CenterCrop(height=378, width=378, p=1), A.Resize(image_size_sat[0], image_size_sat[1], interpolation=cv2.INTER_LINEAR_EXACT, p=1.0), A.Normalize(mean, std), ToTensorV2()])
    ground_transforms = A.Compose([Cut(cutting=ground_cutting, p=1.0), A.Resize(img_size_ground[0], img_size_ground[1], interpolation=cv2.INTER_LINEAR_EXACT, p=1.0), A.Normalize(mean, std), ToTensorV2()])
    return (satellite_transforms, ground_transforms)

ARGS = {
    "image_size_sat": (224, 224),
    "img_size_ground": (256, 256),
    "mean": [0.485, 0.456, 0.406],
    "std": [0.229, 0.224, 0.225],
    "ground_cutting": 0
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
albumentations, cv2 — 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
predict Ran
ran; our contract draft was wrong, not the code
gaoshuang98/cvcities/cvcities_base/trainer.py
code served (permissive licence) · get_code("fcb77e21c648f7fa")
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. 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 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
from torch.utils.data import DataLoader, Dataset

torch.manual_seed(0)

# Create a minimal config class with required attributes
class TrainConfig:
    def __init__(self):
        self.device = 'cpu'
        self.normalize_features = True

# Create a minimal model that takes an image and outputs features
class SimpleFeatureExtractor(nn.Module):
    def __init__(self):
        super().__init__()
        self.fc = nn.Linear(12, 8)  # Input: 3x4 flattened = 12, output: 8 features
    
    def forward(self, x):
        batch_size = x.shape[0]
        x = x.view(batch_size, -1)  # Flatten
        return self.fc(x)

# Create a minimal dataset
class SimpleDataset(Dataset):
    def __init__(self, num_samples=4):
        self.num_samples = num_samples
        # Images: shape (3, 4) - 3 channels, 4 spatial dims
        self.images = torch.randn(num_samples, 3, 4)
        self.ids = torch.randint(0, 10, (num_samples,))
    
    def __len__(self):
        return self.num_samples
    
    def __getitem__(self, idx):
        return self.images[idx], self.ids[idx]

# Create instances
train_config = TrainConfig()
model = SimpleFeatureExtractor()
dataset = SimpleDataset(num_samples=4)
dataloader = DataLoader(dataset, batch_size=2, shuffle=False)

ARGS = {
    'train_config': train_config,
    'model': model,
    'dataloader': dataloader
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, tqdm — 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
predict_vigor Ran
ran, honoured the contract we drafted
gaoshuang98/cvcities/cvcities_base/trainer.py
code served (permissive licence) · get_code("6310448b799edb4e")
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 3, 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
import torch.nn as nn
from torch.utils.data import Dataset, DataLoader

torch.manual_seed(0)

class DummyConfig:
    def __init__(self):
        self.device = 'cpu'
        self.normalize_features = True

class DummyModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(3, 4)
    
    def forward(self, x):
        return self.linear(x)

class DummyDataset(Dataset):
    def __init__(self, num_samples=2):
        self.num_samples = num_samples
    
    def __len__(self):
        return self.num_samples
    
    def __getitem__(self, idx):
        img = torch.randn(3)
        ids_current = torch.tensor([1, 2, 3, 4], dtype=torch.long)
        return img, ids_current

config = DummyConfig()
model = DummyModel()
dataset = DummyDataset(num_samples=2)
dataloader = DataLoader(dataset, batch_size=2, shuffle=False)

ARGS = {
    'train_config': config,
    'model': model,
    'dataloader': dataloader
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, tqdm — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 3, 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
read_cities_csv Ran
ran; our contract draft was wrong, not the code
gaoshuang98/cvcities/calc_distance/calc_distance_cvcities.py
code served (permissive licence) · get_code("b185cb51f311a8b1")
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 DataFrame. 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 pandas as pd
import os
import tempfile
from pathlib import Path

# Create a temporary directory structure to simulate the data folder
temp_dir = tempfile.mkdtemp()

# Create city subdirectories with sample CSV files
cities = ['city1', 'city2']
for city in cities:
    city_path = os.path.join(temp_dir, city)
    os.makedirs(city_path, exist_ok=True)
    
    # Create a sample img_info.csv file
    csv_path = os.path.join(city_path, 'img_info.csv')
    sample_data = pd.DataFrame({
        'col1': [1, 2, 3],
        'col2': ['a', 'b', 'c'],
        'col3': [4.5, 5.5, 6.5]
    })
    sample_data.to_csv(csv_path, header=False, index=False)

ARGS = {
    'cities': cities,
    'data_folder': temp_dir
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataFrame — a DataFrame output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataFrame output the recorded ndim 2 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
sec_to_min Ran
ran; our contract draft was wrong, not the code
gaoshuang98/cvcities/cvcities_base/utils.py
code served (permissive licence) · get_code("36415b625870a61d")
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

def sec_to_min(seconds):
    seconds = int(seconds)
    minutes = seconds // 60
    seconds_remaining = seconds % 60
    if seconds_remaining < 10:
        seconds_remaining = '0{}'.format(seconds_remaining)
    return '{}:{}'.format(minutes, seconds_remaining)

ARGS = {
    'seconds': 125
}
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
sec_to_time Ran
ran; our contract draft was wrong, not the code
gaoshuang98/cvcities/cvcities_base/utils.py
code served (permissive licence) · get_code("0b5a31bf71aed071")
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
import numpy as np
from datetime import timedelta

torch.manual_seed(0)

# The function sec_to_time takes a single parameter 'seconds'
# It converts seconds (as an int) to a timedelta string representation
# The parameter should be a numeric value representing seconds

ARGS = {
    'seconds': 3661  # 1 hour, 1 minute, 1 second
}
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 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
train Not yet run
unverified (harvested, no recorded run)
gaoshuang98/cvcities/cvcities_base/trainer.py
code served (permissive licence) · get_code("61b2774538a60499")
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

Cross-view geo-localization (CVGL), which involves matching and retrieving satellite images to determine the geographic location of a ground image, is crucial in GNSS-constrained scenarios. However, this task faces significant challenges due to substantial viewpoint discrepancies, the complexity of localization scenarios, and the need for global localization. To address these issues, we propose a novel CVGL framework that integrates the vision foundational model DINOv2 with an advanced feature mixer. Our framework introduces the symmetric InfoNCE loss and incorporates near-neighbor sampling and dynamic similarity sampling strategies, significantly enhancing localization accuracy. Experimental results show that our framework surpasses existing methods across multiple public and self-built datasets. To further improve globalscale performance, we have developed CV-Cities, a novel dataset for global CVGL. CV-Cities includes 223,736 ground-satellite image pairs with geolocation data, spanning sixteen cities across six continents and covering a wide range of complex scenarios, providing a challenging benchmark for CVGL. The framework trained with CV-Cities demonstrates high localization accuracy in various test cities, highlighting its strong globalization and generalization capabilities. Our datasets and codes are available at https://github.com/GaoShuang98/CVCities.

For agents

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

get_harvested_code_for_paper("2411.12431")
get_code_for_paper("2411.12431")
have("2411.12431")

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

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

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

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

Connect an agent — have() is free.