SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2206.11134 · 2022

Open Vocabulary Object Detection with Proposal Mining and Prediction Equalization

arXiv · PDF · Open in the Atlas

Code that ran

7 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, 1 violated it and 0 have no contract verdict; 5 failures of our instrument; 2 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/2206.11134.json · badge: /api/ran/2206.11134.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
pealing/medet canonical (classifier label)
classifier basis not recorded on the link
7 ran · 2 no recorded run
FunctionStatusWhere it lives
get_clip_embeddings Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
pealing/medet/medet/predictor.py
code served (permissive licence) · get_code("1f211df98dc51cee")
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 (4, 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 torch
import torch.nn as nn
from unittest.mock import Mock

torch.manual_seed(0)

class MockTextEncoder(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(10, 4)
    
    def forward(self, texts):
        # texts is a list of strings
        # return a tensor of shape (batch_size, embedding_dim)
        batch_size = len(texts)
        # Simulate encoding: return tensor of shape (batch_size, 4)
        return self.linear(torch.randn(batch_size, 10))

def mock_build_text_encoder(pretrain=True):
    return MockTextEncoder()

# Monkey-patch the detic module structure
import sys
from types import ModuleType

detic = ModuleType('detic')
detic.modeling = ModuleType('detic.modeling')
detic.modeling.text = ModuleType('detic.modeling.text')
detic.modeling.text.text_encoder = ModuleType('detic.modeling.text.text_encoder')
detic.modeling.text.text_encoder.build_text_encoder = mock_build_text_encoder

sys.modules['detic'] = detic
sys.modules['detic.modeling'] = detic.modeling
sys.modules['detic.modeling.text'] = detic.modeling.text
sys.modules['detic.modeling.text.text_encoder'] = detic.modeling.text.text_encoder

ARGS = {
    'vocabulary': ['cat', 'dog', 'bird'],
    'prompt': 'a '
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
detic, 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 (4, 3) — shape (4, 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_fed_loss_inds Ran
ran; our contract draft was wrong, not the code
pealing/medet/medet/modeling/utils.py
code served (permissive licence) · get_code("bb583e07209fe58b")
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 1, dtype family int, shape (5,) 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)

# gt_classes: a tensor of class indices
gt_classes = torch.tensor([0, 1, 2, 1, 0], dtype=torch.long)

# num_sample_cats: number of categories to sample
num_sample_cats = 5

# C: number of classes (total number of categories)
C = 8

# weight: optional weight tensor for classes, should have length C
weight = torch.ones(C, dtype=torch.float32)

ARGS = {
    "gt_classes": gt_classes,
    "num_sample_cats": num_sample_cats,
    "C": C,
    "weight": weight,
}
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 1, dtype family int, shape (5,) — shape (5,) 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
load_class_freq Ran
ran, honoured the contract we drafted
pealing/medet/medet/modeling/utils.py
code served (permissive licence) · get_code("1f6e4c3da7b82979")
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 1, dtype family float, shape (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 torch
import json
import tempfile
import os

torch.manual_seed(0)

# Create a temporary directory and a mock LVIS metadata file
temp_dir = tempfile.mkdtemp()
metadata_path = os.path.join(temp_dir, 'lvis_v1_train_cat_info.json')

# Create mock category info with id and image_count
cat_info_data = [
    {'id': 1, 'image_count': 100},
    {'id': 2, 'image_count': 250},
    {'id': 3, 'image_count': 50},
]

with open(metadata_path, 'w') as f:
    json.dump(cat_info_data, f)

ARGS = {
    'path': metadata_path,
    'freq_weight': 1.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 1, dtype family float, shape (3,) — shape (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
match_name_keywords Ran
ran, violated the contract we drafted
pealing/medet/medet/custom_solver.py
code served (permissive licence) · get_code("c15434906f804d7f")
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) and returned bool, 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

torch.manual_seed(0)

# The function match_name_keywords checks if any string in name_keywords
# is contained in the string n. It takes:
# - n: a string to search in
# - name_keywords: an iterable of strings to search for

n = "layer.weight.bias"
name_keywords = ["weight", "bias", "norm"]

ARGS = {
    "n": n,
    "name_keywords": name_keywords,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, 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
permute_to_N_HWA_K Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
pealing/medet/medet/modeling/meta_arch/dense_detector.py
code served (permissive licence) · get_code("573ab018aa3f2e6f")
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) and returned Tensor, ndim 3, dtype family float, shape (2, 90, 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)

# The function expects:
# - tensor: a 4D tensor of shape (N, (Ai x K), H, W)
# - K: an integer representing the last dimension size

# Let's construct a valid tensor:
# N=2 (batch size)
# Ai=3 (number of anchors)
# K=4 (feature dimension)
# H=5 (height)
# W=6 (width)
# So the tensor shape should be (2, 3*4, 5, 6) = (2, 12, 5, 6)

N = 2
Ai = 3
K = 4
H = 5
W = 6

tensor = torch.randn(N, Ai * K, H, W)

ARGS = {
    "tensor": tensor,
    "K": K,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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 3, dtype family float, shape (2, 90, 4) — shape (2, 90, 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
window_partition Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
pealing/medet/medet/modeling/backbone/swintransformer.py
code served (permissive licence) · get_code("f9fd6241d935f07b")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned Tensor, ndim 4, dtype family float, shape (12, 4, 4, 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)

# Create a tensor with shape (B, H, W, C)
# B = 2 (batch size)
# H = 8 (height, must be divisible by window_size)
# W = 12 (width, must be divisible by window_size)
# C = 4 (channels)
# window_size = 4

B = 2
H = 8
W = 12
C = 4
window_size = 4

x = torch.randn(B, H, W, C)

ARGS = {
    'x': x,
    'window_size': window_size
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
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 4, dtype family float, shape (12, 4, 4, 4) — shape (12, 4, 4, 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
window_reverse Ran
ran; our contract draft was wrong, not the code
pealing/medet/medet/modeling/backbone/swintransformer.py
code served (permissive licence) · get_code("fb32094c6dbece71")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned Tensor, ndim 4, dtype family float, shape (2, 8, 12, 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 torch

torch.manual_seed(0)

# Define parameters
# We need windows of shape (num_windows*B, window_size, window_size, C)
# where num_windows = (H // window_size) * (W // window_size)

B = 2
H = 8
W = 12
window_size = 4
C = 6

# Calculate num_windows
num_windows_h = H // window_size  # 8 // 4 = 2
num_windows_w = W // window_size  # 12 // 4 = 3
num_windows = num_windows_h * num_windows_w  # 2 * 3 = 6

# Total number of windows across batch
total_windows = num_windows * B  # 6 * 2 = 12

# Create windows tensor
windows = torch.randn(total_windows, window_size, window_size, C)

ARGS = {
    'windows': windows,
    'window_size': window_size,
    'H': H,
    'W': W
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
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 4, dtype family float, shape (2, 8, 12, 6) — shape (2, 8, 12, 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
compute_average_precision Not yet run
unverified (harvested, no recorded run)
pealing/medet/medet/evaluation/oideval.py
code served (permissive licence) · get_code("2e0a799ccbd489e7")
How it ran

no invocation recorded.

create_timm_resnet Not yet run
unverified (harvested, no recorded run)
pealing/medet/medet/modeling/backbone/timm.py
code served (permissive licence) · get_code("625ac447e2e8b2bc")
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, 9 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 2 the same month, 9 later) and 0 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
window_reverse 227 other papers
57 dated earlier, 2 the same month, 166 later, 2 same year, order not determinable · 34 only as an assembly brick
1608.03983 (2016-08)
SGDR: Stochastic Gradient Descent with Warm Restarts
1711.10925 (2017-11)
Deep Image Prior
2003.13678 (2020-03)
Designing Network Design Spaces
and 224 more not named here
window_partition 223 other papers
53 dated earlier, 2 the same month, 166 later, 2 same year, order not determinable · 32 only as an assembly brick
1706.03762 (2017-06)
Attention Is All You Need
1711.10925 (2017-11)
Deep Image Prior
2003.13678 (2020-03)
Designing Network Design Spaces
and 220 more not named here
match_name_keywords 13 other papers
2 dated earlier, 11 later
2010.04159 (2020-10)
Deformable DETR: Deformable Transformers for End-to-End Object Detection
2111.04076 (2021-11)
Direct Multi-view Multi-person 3D Pose Estimation
2207.13080 (2022-07)
DETRs with Hybrid Matching
and 10 more not named here
compute_average_precision 11 other papers
3 dated earlier, 7 later, 1 same year, order not determinable
aaai_6793 (2020 (year only))
Background Suppression Network for Weakly-Supervised Temporal Action Localization
2006.07976 (2020-06)
Actor-Context-Actor Relation Network for Spatio-Temporal Action Localization
2107.06592 (2021-07)
Is Someone Speaking? Exploring Long-term Temporal Features for Audio-visual Active Speaker Detection
and 8 more not named here
get_fed_loss_inds 10 other papers
10 later
2207.03482 (2022-07)
Bridging the Gap between Object and Image-level Representations for Open-Vocabulary Detection
2207.13080 (2022-07)
DETRs with Hybrid Matching
2211.12914 (2022-11)
Open-vocabulary Attribute Detection
and 7 more not named here
load_class_freq 7 other papers
7 later
2207.13080 (2022-07)
DETRs with Hybrid Matching
2211.12914 (2022-11)
Open-vocabulary Attribute Detection
2303.14679 (2023-03)
ZBS: Zero-shot Background Subtraction via Instance-level Background Modeling and Foreground Selection
and 4 more not named here
create_timm_resnet 6 other papers
6 later
2207.13080 (2022-07)
DETRs with Hybrid Matching
2305.11173 (2023-05)
Going Denser with Open-Vocabulary Part Segmentation
2310.16667 (2023-10)
CoDet: Co-Occurrence Guided Region-Word Alignment for Open-Vocabulary Object Detection
and 3 more not named here
permute_to_N_HWA_K 5 other papers
5 later
Wilson_SAFE_Sensitivity-Aware_Features_for_Out-of-Distribution_Object_Detection_ICCV_2023_paper (2023 (year only))
SAFE: Sensitivity-Aware Features for Out-of-Distribution Object Detection
2302.07106 (2023-02)
Normalizing Flow based Feature Synthesis for Outlier-Aware Object Detection
2303.06500 (2023-03)
Diffusion-Based Hierarchical Multi-Label Object Detection to Analyze Panoramic Dental X-rays
and 2 more not named here
get_clip_embeddings 4 other papers
4 later
2207.13080 (2022-07)
DETRs with Hybrid Matching
2303.14679 (2023-03)
ZBS: Zero-shot Background Subtraction via Instance-level Background Modeling and Foreground Selection
2312.14494 (2023-12)
Revisiting Few-Shot Object Detection with Vision-Language Models
and 1 more not named here

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

Open-vocabulary object detection (OVD) aims to scale up vocabulary size to detect objects of novel categories beyond the training vocabulary. Recent work resorts to the rich knowledge in pre-trained vision-language models. However, existing methods are ineffective in proposal-level vision-language alignment. Meanwhile, the models usually suffer from confidence bias toward base categories and perform worse on novel ones. To overcome the challenges, we present MEDet, a novel and effective OVD framework with proposal mining and prediction equalization. First, we design an online proposal mining to refine the inherited vision-semantic knowledge from coarse to fine, allowing for proposal-level detection-oriented feature alignment. Second, based on causal inference theory, we introduce a class-wise backdoor adjustment to reinforce the predictions on novel categories to improve the overall OVD performance. Extensive experiments on COCO and LVIS benchmarks verify the superiority of MEDet over the competing approaches in detecting objects of novel categories, e.g., 32.6% AP50 on COCO and 22.4% mask mAP on LVIS.

For agents

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

get_harvested_code_for_paper("2206.11134")
get_code_for_paper("2206.11134")
have("2206.11134")

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

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

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

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

Connect an agent — have() is free.