SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2210.02318 · NeurIPS · 2022

FQDet: Fast-converging Query-based Detector

Cédric Picron, Punarjay Chakravarty

arXiv · PDF · Open in the Atlas

Code that ran

3 of 6 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 2 have no contract verdict; 1 failure of our instrument; 3 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/2210.02318.json · badge: /api/ran/2210.02318.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
cedricpicron/fqdet canonical (classifier label)
classifier basis not recorded on the link
2 ran · 1 no recorded run
cedricpicron/detseg community
Papers with Code archive
1 ran · 2 no recorded run
FunctionStatusWhere it lives
hflip Ran
ran on a synthesized input
cedricpicron/fqdet/datasets/transforms.py
code served (permissive licence) · get_code("db1a2323b9f6dfd8")
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
from PIL import Image
import numpy as np

torch.manual_seed(0)

# Stand-in class for Boxes structure
class Boxes:
    def __init__(self, boxes_tensor):
        self.boxes = boxes_tensor
    
    def hflip(self, width):
        """Flip boxes horizontally given image width"""
        flipped = self.boxes.clone()
        # Assuming boxes are [x1, y1, x2, y2] format
        flipped[:, [0, 2]] = width - flipped[:, [2, 0]]
        return Boxes(flipped)

# Stand-in class for Images structure
class Images:
    def __init__(self, pil_image):
        self.images = pil_image
    
    def hflip(self):
        """Flip the PIL image horizontally"""
        flipped_pil = self.images.transpose(Image.FLIP_LEFT_RIGHT)
        return Images(flipped_pil)

# Create a small PIL image (4x3 pixels)
pil_image = Image.new('RGB', (4, 3), color='red')

# Create Images wrapper
image = Images(pil_image)

# Create target dictionary with boxes and masks
boxes_tensor = torch.tensor([[1.0, 1.0, 3.0, 2.0], [0.5, 0.5, 2.5, 2.5]], dtype=torch.float32)
boxes = Boxes(boxes_tensor)

masks = torch.randint(0, 2, (2, 3, 4), dtype=torch.bool)

tgt_dict = {
    'boxes': boxes,
    'masks': masks
}

ARGS = {
    'image': image,
    'tgt_dict': tgt_dict
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy, 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
pad Ran
ran on a synthesized input
cedricpicron/fqdet/datasets/transforms.py
code served (permissive licence) · get_code("f1bbb00f81ac04c6")
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.functional as F
from PIL import Image

torch.manual_seed(0)

class MockImages:
    """Mock Images structure with a PIL Image that supports padding."""
    def __init__(self, pil_image):
        self.pil_image = pil_image
    
    def pad(self, padding):
        """Pad the PIL image. padding is (left, top, right, bottom)"""
        left, top, right, bottom = padding
        new_width = self.pil_image.width + left + right
        new_height = self.pil_image.height + top + bottom
        padded = Image.new('RGB', (new_width, new_height), color=(0, 0, 0))
        padded.paste(self.pil_image, (left, top))
        return MockImages(padded)

class MockBoxes:
    """Mock Boxes structure that supports padding."""
    def __init__(self, tensor):
        self.tensor = tensor
    
    def pad(self, padding):
        """Adjust box coordinates based on padding (left, top, right, bottom)"""
        left, top, right, bottom = padding
        adjusted = self.tensor.clone()
        adjusted[:, [0, 2]] += left  # x coordinates
        adjusted[:, [1, 3]] += top   # y coordinates
        return MockBoxes(adjusted)

# Create a small PIL image (4x3 pixels)
pil_img = Image.new('RGB', (4, 3), color=(255, 0, 0))
image = MockImages(pil_img)

# Create target dictionary with boxes and masks
boxes = MockBoxes(torch.tensor([[1.0, 2.0, 3.0, 4.0], [2.0, 3.0, 4.0, 5.0]]))
masks = torch.randint(0, 2, (2, 3, 4), dtype=torch.bool)  # 2 masks, 3x4 size

tgt_dict = {
    'boxes': boxes,
    'masks': masks
}

# Padding vector (left, top, right, bottom)
padding = (1, 2, 1, 2)

ARGS = {
    'image': image,
    'tgt_dict': tgt_dict,
    'padding': padding
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, 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
pytorch_maps_sample_3d Ran
ran; our contract draft was wrong, not the code
cedricpicron/detseg/models/modules/attention.py
pointer only (licence: NONE) · get_code("8a0f232dab561791")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, cedricpicron/detseg 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.

MSDAv6 Not yet run
unverified (harvested, no recorded run)
cedricpicron/detseg/models/modules/attention.py
pointer only (licence: NONE) · get_code("02567a95ba76d675")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, cedricpicron/detseg 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. No invocation recorded.

crop Not yet run
unverified (harvested, no recorded run)
cedricpicron/fqdet/datasets/transforms.py
code served (permissive licence) · get_code("9a4a4255ea2a0373")
How it ran

no invocation recorded.

pytorch_maps_insert_3d Not yet run
unverified (harvested, no recorded run)
cedricpicron/detseg/models/modules/attention.py
pointer only (licence: NONE) · get_code("19c660889c0415a6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, cedricpicron/detseg 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. No invocation recorded.

Also present in other papers' code

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

Recently, two-stage Deformable DETR introduced the query-based two-stage head, a new type of two-stage head different from the region-based two-stage heads of classical detectors as Faster R-CNN. In query-based two-stage heads, the second stage selects one feature per detection processed by a transformer, called the query, as opposed to pooling a rectangular grid of features processed by CNNs as in region-based detectors. In this work, we improve the query-based head by improving the prior of the cross-attention operation with anchors, significantly speeding up the convergence while increasing its performance. Additionally, we empirically show that by improving the cross-attention prior, auxiliary losses and iterative bounding box mechanisms typically used by DETR-based detectors are no longer needed. By combining the best of both the classical and the DETR-based detectors, our FQDet head peaks at 45.4 AP on the 2017 COCO validation set when using a ResNet-50+TPN backbone, only after training for 12 epochs using the 1x schedule. We outperform other high-performing two-stage heads such as e.g. Cascade R-CNN, while using the same backbone and while being computationally cheaper. Additionally, when using the large ResNeXt-101-DCN+TPN backbone and multi-scale testing, our FQDet head achieves 52.9 AP on the 2017 COCO test-dev set after only 12 epochs of training. Code is released at https://github. com/CedricPicron/FQDet.

For agents

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

get_harvested_code_for_paper("2210.02318")
get_code_for_paper("2210.02318")
have("2210.02318")

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

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

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

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

Connect an agent — have() is free.