SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2405.17913 · 2024

OV-DQUO: Open-Vocabulary DETR with Denoising Text Query Training and Open-World Unknown Objects Supervision

arXiv · PDF · Open in the Atlas

Code that ran

9 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; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 7 failures of our instrument; 2 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/2405.17913.json · badge: /api/ran/2405.17913.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
xiaomoguhz/ov-dquo canonical (classifier label)
classifier basis: census
9 ran · 2 no recorded run
FunctionStatusWhere it lives
convert_to_xywh Ran
ran, honoured the contract we drafted
xiaomoguhz/ov-dquo/datasets/coco_eval.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from yuhangzang/contextdet, is pointer only (licence: NOASSERTION) · get_code("f31a58bf6457ced5")
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 yuhangzang/contextdet, and GitHub could not classify the licence of that repository (NOASSERTION). 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.

dn_post_process Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
xiaomoguhz/ov-dquo/models/ov_dquo/ov_dn_components.py
code served (permissive licence) · get_code("0136c1e716ef3276")
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 torch

torch.manual_seed(0)

# Construct arguments for dn_post_process
outputs_class = torch.randn(2, 3, 10, 4)  # (batch, num_layers, seq_len, num_classes)
outputs_coord = torch.randn(2, 3, 10, 5)  # (batch, num_layers, seq_len, coord_dim)

dn_meta = {
    'pad_size': 4,
    'output_known_lbs_bboxes': None
}

aux_loss = True

def _set_aux_loss(output_known_class, output_known_coord):
    """Helper function to create auxiliary loss outputs"""
    return [
        {
            'pred_logits': output_known_class[i],
            'pred_boxes': output_known_coord[i]
        }
        for i in range(len(output_known_class) - 1)
    ]

ARGS = {
    'outputs_class': outputs_class,
    'outputs_coord': outputs_coord,
    'dn_meta': dn_meta,
    'aux_loss': aux_loss,
    '_set_aux_loss': _set_aux_loss
}
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 — 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
evaluate Ran
ran; our contract draft was wrong, not the code
xiaomoguhz/ov-dquo/datasets/coco_eval.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from yuhangzang/contextdet, is pointer only (licence: NOASSERTION) · get_code("fe0ddcc2d420c9a0")
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 yuhangzang/contextdet, and GitHub could not classify the licence of that repository (NOASSERTION). 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.

gen_encoder_output_proposals Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
xiaomoguhz/ov-dquo/models/ov_dquo/utils.py
code served (permissive licence) · get_code("e3b2768e6a9c1cb5")
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. 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
from torch import nn, Tensor

torch.manual_seed(0)

# Define parameters for the function
# memory: bs, sum{hw}, d_model
# For 2 levels with spatial shapes (2, 3) and (2, 2): sum{hw} = 2*3 + 2*2 = 10
batch_size = 2
d_model = 4
total_hw = 10  # sum of all spatial dimensions

# Create memory tensor: (batch_size, total_hw, d_model)
memory = torch.randn(batch_size, total_hw, d_model)

# Create memory_padding_mask: (batch_size, total_hw)
# False means valid, True means padding
memory_padding_mask = torch.zeros(batch_size, total_hw, dtype=torch.bool)
# Mark some positions as padding
memory_padding_mask[0, 8:] = True
memory_padding_mask[1, 9:] = True

# Create spatial_shapes: (nlevel, 2)
# Two levels: first level is 2x3, second level is 2x2
spatial_shapes = torch.tensor([[2, 3], [2, 2]], dtype=torch.long)

# Create learnedwh: (2,) tensor
learnedwh = torch.randn(2)

ARGS = {
    "memory": memory,
    "memory_padding_mask": memory_padding_mask,
    "spatial_shapes": spatial_shapes,
    "learnedwh": learnedwh,
}
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
gen_sineembed_for_position Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
xiaomoguhz/ov-dquo/models/ov_dquo/utils.py
code served (permissive licence) · get_code("4c82654ae6131ecc")
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 3, dtype family float, shape (2, 3, 256) 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 math

torch.manual_seed(0)

# The function expects pos_tensor with shape (batch, num_positions, 2 or 4)
# where the last dimension is either:
# - 2: (x, y) coordinates
# - 4: (y, x, w, h) coordinates

# Create a small pos_tensor with shape (2, 3, 2) for batch_size=2, num_positions=3, coords=2
pos_tensor_2d = torch.randn(2, 3, 2, dtype=torch.float32)

# Also test with 4D coordinates
pos_tensor_4d = torch.randn(2, 3, 4, dtype=torch.float32)

ARGS = {
    "pos_tensor": pos_tensor_2d
}
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 3, dtype family float, shape (2, 3, 256) — shape (2, 3, 256) 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
generate_deterministic_rand Ran
ran, honoured the contract we drafted
xiaomoguhz/ov-dquo/engine.py
code served (permissive licence) · get_code("dbde9f756c9f67d9")
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 float, 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 random

ARGS = {
    "num": 42
}
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 float, 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
label2onehot Ran
ran; our contract draft was wrong, not the code
xiaomoguhz/ov-dquo/datasets/coco.py
code served (permissive licence) · get_code("fb05961e12a99588")
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

torch.manual_seed(0)

# The function expects:
# - label: a Tensor of shape (K,) containing class indices
# - num_classes: an integer representing the number of classes

# Create a small label tensor with K=3 elements, each being a class index
# The values should be valid indices less than num_classes
label = torch.tensor([0, 2, 1], dtype=torch.long)

# Number of classes
num_classes = 3

ARGS = {
    "label": label,
    "num_classes": num_classes,
}
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
sigmoid_focal_loss Ran
ran; our contract draft was wrong, not the code
xiaomoguhz/ov-dquo/models/ov_dquo/utils.py
code served (permissive licence) · get_code("f09e169e2656c2f7")
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 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
import torch.nn.functional as F

torch.manual_seed(0)

# Create small tensors for inputs and targets
# inputs: predictions (logits) - shape (batch_size, num_predictions)
# targets: binary labels - shape (batch_size, num_predictions)
batch_size = 2
num_predictions = 4

inputs = torch.randn(batch_size, num_predictions)
targets = torch.randint(0, 2, (batch_size, num_predictions)).float()
num_boxes = 2

ARGS = {
    'inputs': inputs,
    'targets': targets,
    'num_boxes': num_boxes,
    'alpha': 0.25,
    'gamma': 2.0,
    'reduce': True
}
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 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
targets_preprocess Ran
ran; our contract draft was wrong, not the code
xiaomoguhz/ov-dquo/models/ov_dquo/ov_dn_components.py
code served (permissive licence) · get_code("413e6183a3918686")
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 list, 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 copy

torch.manual_seed(0)

# Create sample targets with the required structure
# The function expects a list of dicts, each containing:
# - 'pseudo_mask': a boolean tensor
# - 'boxes': a tensor of bounding boxes
# - 'labels': a tensor of labels
# - 'weight': a tensor of weights

targets = [
    {
        'pseudo_mask': torch.tensor([True, False, True, False]),
        'boxes': torch.randn(4, 3),
        'labels': torch.tensor([0, 1, 2, 1]),
        'weight': torch.tensor([1.0, 0.5, 1.0, 0.5]),
    },
    {
        'pseudo_mask': torch.tensor([False, False, True, True]),
        'boxes': torch.randn(4, 3),
        'labels': torch.tensor([1, 0, 2, 1]),
        'weight': torch.tensor([0.5, 1.0, 1.0, 0.5]),
    }
]

ARGS = {
    'targets': targets
}
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 list, ndim 1, dtype family float — a list 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
ciou Not yet run
unverified (harvested, no recorded run)
xiaomoguhz/ov-dquo/util/box_loss.py
code served (permissive licence) · get_code("4373b99bf6b5fd7d")
How it ran

no invocation recorded.

diou Not yet run
unverified (harvested, no recorded run)
xiaomoguhz/ov-dquo/util/box_loss.py
code served (permissive licence) · get_code("7818a5040676702a")
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, 8 are also present in other papers whose code we hold (7 with at least one paper dated earlier, 0 the same month, 6 later) and 3 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
convert_to_xywh 24 other papers
21 dated earlier, 2 later, 1 same year, order not determinable
1512.02325 (2015-12)
SSD: Single Shot MultiBox Detector
2010.04159 (2020-10)
Deformable DETR: Deformable Transformers for End-to-End Object Detection
2103.11731 (2021-03)
Meta-DETR: Image-Level Few-Shot Object Detection with Inter-Class Correlation Exploitation
and 21 more not named here
evaluate 23 other papers
20 dated earlier, 2 later, 1 same year, order not determinable
1512.02325 (2015-12)
SSD: Single Shot MultiBox Detector
2010.04159 (2020-10)
Deformable DETR: Deformable Transformers for End-to-End Object Detection
2103.11731 (2021-03)
Meta-DETR: Image-Level Few-Shot Object Detection with Inter-Class Correlation Exploitation
and 20 more not named here
ciou 8 other papers
6 dated earlier, 2 later
2203.03605 (2022-03)
DINO: DETR with Improved DeNoising Anchor Boxes for End-to-End Object Detection
Liu_SAP-DETR_Bridging_the_Gap_Between_Salient_Points_and_Queries-Based_Transformer_CVPR_2023_paper (2023 (year only))
SAP-DETR: Bridging the Gap between Salient Points and Queries-Based Transformer Detector for Fast Model Convergency
and 5 more not named here
diou 7 other papers
5 dated earlier, 2 later
2203.03605 (2022-03)
DINO: DETR with Improved DeNoising Anchor Boxes for End-to-End Object Detection
Liu_SAP-DETR_Bridging_the_Gap_Between_Salient_Points_and_Queries-Based_Transformer_CVPR_2023_paper (2023 (year only))
SAP-DETR: Bridging the Gap between Salient Points and Queries-Based Transformer Detector for Fast Model Convergency
and 4 more not named here
gen_sineembed_for_position 7 other papers
6 dated earlier, 1 later
2203.01305 (2022-03)
DN-DETR: Accelerate DETR Training by Introducing Query DeNoising
2203.03605 (2022-03)
DINO: DETR with Improved DeNoising Anchor Boxes for End-to-End Object Detection
2206.02777 (2022-06)
Mask DINO: Towards A Unified Transformer-based Framework for Object Detection and Segmentation
and 4 more not named here
dn_post_process 4 other papers
4 dated earlier
2203.03605 (2022-03)
DINO: DETR with Improved DeNoising Anchor Boxes for End-to-End Object Detection
2206.02777 (2022-06)
Mask DINO: Towards A Unified Transformer-based Framework for Object Detection and Segmentation
2310.12152 (2023-10)
Learning from Rich Semantics and Coarse Locations for Long-tailed Object Detection
and 1 more not named here
gen_encoder_output_proposals 4 other papers
4 dated earlier
2203.03605 (2022-03)
DINO: DETR with Improved DeNoising Anchor Boxes for End-to-End Object Detection
2206.02777 (2022-06)
Mask DINO: Towards A Unified Transformer-based Framework for Object Detection and Segmentation
2308.07313 (2023-08)
Group Pose: A Simple Baseline for End-to-End Multi-person Pose Estimation
and 1 more not named here
label2onehot 1 other paper
1 later
2406.14924 (2024-06)
DiPEx: Dispersing Prompt Expansion for Class-Agnostic Object Detection

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

Open-vocabulary detection aims to detect objects from novel categories beyond the base categories on which the detector is trained. However, existing open-vocabulary detectors trained on base category data tend to assign higher confidence to trained categories and confuse novel categories with the background. To resolve this, we propose OV-DQUO, an \textbf{O}pen-\textbf{V}ocabulary DETR with \textbf{D}enoising text \textbf{Q}uery training and open-world \textbf{U}nknown \textbf{O}bjects supervision. Specifically, we introduce a wildcard matching method. This method enables the detector to learn from pairs of unknown objects recognized by the open-world detector and text embeddings with general semantics, mitigating the confidence bias between base and novel categories. Additionally, we propose a denoising text query training strategy. It synthesizes foreground and background query-box pairs from open-world unknown objects to train the detector through contrastive learning, enhancing its ability to distinguish novel objects from the background. We conducted extensive experiments on the challenging OV-COCO and OV-LVIS benchmarks, achieving new state-of-the-art results of 45.6 AP50 and 39.3 mAP on novel categories respectively, without the need for additional training data. Models and code are released at \url{https://github.com/xiaomoguhz/OV-DQUO}

For agents

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

get_harvested_code_for_paper("2405.17913")
get_code_for_paper("2405.17913")
have("2405.17913")

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

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

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

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

Connect an agent — have() is free.