SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2412.19412 · 2024

MINIMA: Modality Invariant Image Matching

arXiv · PDF · Open in the Atlas

Code that ran

6 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 5 have no contract verdict; 1 failure of our instrument; 5 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/2412.19412.json · badge: /api/ran/2412.19412.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
LSXI7/MINIMA canonical (classifier label)
classifier basis not recorded on the link
6 ran · 5 no recorded run
FunctionStatusWhere it lives
get_cfg_defaults Ran
ran on a synthesized input
LSXI7/MINIMA/src/config/default.py
code served (permissive licence) · get_code("c467cd703cd60729")
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 CfgNode. 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
from yacs.config import CfgNode as CN

torch.manual_seed(0)

# Build a minimal CfgNode structure that matches what get_cfg_defaults expects
_CN = CN()
_CN.XOFTR = CN()
_CN.XOFTR.COARSE = CN()
_CN.XOFTR.COARSE.INFERENCE = False
_CN.XOFTR.MATCH_COARSE = CN()
_CN.XOFTR.MATCH_COARSE.INFERENCE = False
_CN.XOFTR.FINE = CN()
_CN.XOFTR.FINE.INFERENCE = False

ARGS = {
    "inference": False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, yacs — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type CfgNode — a CfgNode output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a CfgNode 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_rank_zero_only_logger Ran
ran on a synthesized input
LSXI7/MINIMA/src/utils/misc.py
code served (permissive licence) · get_code("69b7cffd9cd40c26")
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 Logger. 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
from loguru import logger

# The function expects a loguru _Logger instance
# We can use the default logger from loguru
ARGS = {
    "logger": logger
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
loguru, pytorch_lightning, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Logger — a Logger output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Logger 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
lower_config Ran
ran; our contract draft was wrong, not the code
LSXI7/MINIMA/src/utils/data_io.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from ShngJZ/PMatch, is pointer only (licence: NONE) · get_code("616a327f53231192")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from ShngJZ/PMatch, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

relative_pose_error Ran
ran on a synthesized input
LSXI7/MINIMA/src/utils/metrics.py
code served (permissive licence) · get_code("b8b45857264d43e3")
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 numpy as np

# Construct valid arguments for relative_pose_error
# T_0to1: 4x4 transformation matrix (homogeneous coordinates)
# R: 3x3 rotation matrix (predicted)
# t: 3D translation vector (predicted)
# ignore_gt_t_thr: threshold for ignoring ground truth translation

# Create a valid 4x4 transformation matrix
T_0to1 = np.array([
    [0.866, -0.5, 0.0, 1.0],      # 3x3 rotation + 1 translation x
    [0.5, 0.866, 0.0, 2.0],       # 3x3 rotation + 1 translation y
    [0.0, 0.0, 1.0, 0.5],         # 3x3 rotation + 1 translation z
    [0.0, 0.0, 0.0, 1.0]          # homogeneous row
], dtype=np.float32)

# Create a predicted rotation matrix (3x3)
R = np.array([
    [0.9, -0.436, 0.0],
    [0.436, 0.9, 0.0],
    [0.0, 0.0, 1.0]
], dtype=np.float32)

# Create a predicted translation vector (3D)
t = np.array([1.1, 2.1, 0.6], dtype=np.float32)

# Set ignore threshold
ignore_gt_t_thr = 0.0

ARGS = {
    "T_0to1": T_0to1,
    "R": R,
    "t": t,
    "ignore_gt_t_thr": ignore_gt_t_thr
}
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 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
symmetric_epipolar_distance_numpy Ran
ran on a synthesized input
LSXI7/MINIMA/src/utils/metrics.py
code served (permissive licence) · get_code("4f3df24c01f477aa")
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 (2,) 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 symmetric_epipolar_distance_numpy

# Number of points
N = 2

# Create point correspondences in pixel coordinates [N, 2]
pts0 = np.array([[100.5, 200.3], [150.2, 250.7]], dtype=np.float32)
pts1 = np.array([[105.1, 205.2], [155.8, 255.3]], dtype=np.float32)

# Create camera intrinsic matrices [3, 3]
# K format: [[fx, 0, cx], [0, fy, cy], [0, 0, 1]]
K0 = np.array([
    [500.0, 0.0, 320.0],
    [0.0, 500.0, 240.0],
    [0.0, 0.0, 1.0]
], dtype=np.float32)

K1 = np.array([
    [480.0, 0.0, 310.0],
    [0.0, 480.0, 235.0],
    [0.0, 0.0, 1.0]
], dtype=np.float32)

# Create an essential matrix [3, 3]
# Using a simple rotation and translation derived essential matrix
E = np.array([
    [0.0, -0.1, 0.5],
    [0.1, 0.0, -0.3],
    [-0.5, 0.3, 0.0]
], dtype=np.float32)

ARGS = {
    "pts0": pts0,
    "pts1": pts1,
    "E": E,
    "K0": K0,
    "K1": K1,
}
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 (2,) — shape (2,) 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
upper_config Ran
ran on a synthesized input
LSXI7/MINIMA/src/utils/data_io.py
code served (permissive licence) · get_code("d2dd10cadb61b3ed")
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 dict. 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

# Analyze the function: upper_config takes a dict_cfg parameter
# The function checks if dict_cfg is a dict, and if so, recursively applies upper_config
# to both keys (converting them to uppercase) and values.
# It handles nested structures.

# Create test cases with nested dictionaries containing various types
ARGS = {
    "dict_cfg": {
        "model_name": "bert",
        "hidden_size": 768,
        "nested": {
            "learning_rate": 0.001,
            "batch_size": 32,
            "deep": {
                "activation": "relu"
            }
        },
        "layers": [1, 2, 3],
        "tensor_data": torch.randn(2, 4)
    }
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
error_auc Not yet run
unverified (harvested, no recorded run)
LSXI7/MINIMA/src/utils/culculate_auc.py
code served (permissive licence) · get_code("854b097c0448e7e0")
How it ran

no invocation recorded.

load_loftr Not yet run
unverified (harvested, no recorded run)
LSXI7/MINIMA/load_model.py
code served (permissive licence) · get_code("804cdf9aa61bbc8e")
How it ran

no invocation recorded.

load_roma Not yet run
unverified (harvested, no recorded run)
LSXI7/MINIMA/load_model.py
code served (permissive licence) · get_code("0b98e6b701b04c7c")
How it ran

no invocation recorded.

load_sp_lg Not yet run
unverified (harvested, no recorded run)
LSXI7/MINIMA/load_model.py
code served (permissive licence) · get_code("af9fd86492ee69a8")
How it ran

no invocation recorded.

symmetric_epipolar_distance Not yet run
unverified (harvested, no recorded run)
LSXI7/MINIMA/src/utils/metrics.py
code served (permissive licence) · get_code("65d11daf5f0057aa")
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, 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 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.

FunctionAlso present inEarliest-datedOthers named
lower_config 4 other papers
4 dated earlier
2104.00680 (2021-04)
LoFTR: Detector-Free Local Feature Matching with Transformers
2204.10144 (2022-04)
A case for using rotation invariant features in state of the art feature matchers
2209.12213 (2022-09)
ECO-TR: Efficient Correspondences Finding Via Coarse-to-Fine Refinement
and 1 more not named here
upper_config 1 other paper
1 dated earlier
2209.12213 (2022-09)
ECO-TR: Efficient Correspondences Finding Via Coarse-to-Fine Refinement

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

Image matching for both cross-view and cross-modality plays a critical role in multimodal perception. In practice, the modality gap caused by different imaging systems/styles poses great challenges to the matching task. Existing works try to extract invariant features for specific modalities and train on limited datasets, showing poor generalization. In this paper, we present MINIMA, a unified image matching framework for multiple cross-modal cases. Without pursuing fancy modules, our MINIMA aims to enhance universal performance from the perspective of data scaling up. For such purpose, we propose a simple yet effective data engine that can freely produce a large dataset containing multiple modalities, rich scenarios, and accurate matching labels. Specifically, we scale up the modalities from cheap but rich RGB-only matching data, by means of generative models. Under this setting, the matching labels and rich diversity of the RGB dataset are well inherited by the generated multimodal data. Benefiting from this, we construct MD-syn, a new comprehensive dataset that fills the data gap for general multimodal image matching. With MD-syn, we can directly train any advanced matching pipeline on randomly selected modality pairs to obtain cross-modal ability. Extensive experiments on in-domain and zero-shot matching tasks, including $19$ cross-modal cases, demonstrate that our MINIMA can significantly outperform the baselines and even surpass modality-specific methods. The dataset and code are available at https://github.com/LSXI7/MINIMA.

For agents

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

get_harvested_code_for_paper("2412.19412")
get_code_for_paper("2412.19412")
have("2412.19412")

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

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

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

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

Connect an agent — have() is free.