SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2403.00326 · ECCV · 2024

DAMSDet: Dynamic Adaptive Multispectral Detection Transformer with Competitive Query Selection and Adaptive Feature Fusion

Deyu Meng, Xinbo Gao, Junjie Guo, Fangcen Liu, Chenqiang Gao

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, 1 violated it and 0 have no contract verdict; 6 failures of our instrument; 2 no recorded run), measured 2026-11-22; 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/2403.00326.json · badge: /api/ran/2403.00326.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
gjj45/DAMSDet canonical (classifier label)
classifier basis: census
9 ran · 2 no recorded run
FunctionStatusWhere it lives
dump_value Ran
ran; our contract draft was wrong, not the code
gjj45/DAMSDet/ppdet/core/workspace.py
code served (permissive licence) · get_code("891281774f8942bd")
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 yaml

torch.manual_seed(0)

# The function takes a single parameter 'value' and processes it
# It checks if value has __dict__, or is a dict, tuple, or list
# Then it yaml.dump's it and does string processing
# So we need to test with various types of values

ARGS = {
    'value': {
        'key1': 'test_string',
        'key2': 42,
        'nested': {'inner': [1, 2, 3]},
        'tuple_field': (1, 2, 3),
        'list_field': [4, 5, 6]
    }
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, yaml — 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
get_weights_url Ran
ran; our contract draft was wrong, not the code
gjj45/DAMSDet/ppdet/model_zoo/model_zoo.py
code served (permissive licence) · get_code("e241ea7c12e86306")
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 os.path as osp

def get_weights_url(model_name):
    return 'ppdet://models/{}.pdparams'.format(osp.split(model_name)[-1])

# The function takes model_name and uses osp.split() on it to get the last component,
# then formats it into a URL string. model_name should be a string path.

ARGS = {
    'model_name': '/path/to/model_checkpoint'
}
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 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
identity Ran
ran, honoured the contract we drafted
gjj45/DAMSDet/ppdet/modeling/ops.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from dholzmueller/universal_double_descent, is pointer only (licence: NONE) · get_code("9910e2fc297f8665")
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 dholzmueller/universal_double_descent, 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.

load_config Ran
ran; our contract draft was wrong, not the code
gjj45/DAMSDet/ppdet/core/workspace.py
code served (permissive licence) · get_code("7b71ca54a440c129")
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 AttrDict. 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 os
import tempfile
import yaml

# Create a temporary directory and YAML files for testing
temp_dir = tempfile.mkdtemp()

# Create a base config file
base_config = {
    'model': 'base_model',
    'learning_rate': 0.001,
    'batch_size': 32
}

base_yml_path = os.path.join(temp_dir, 'base_config.yml')
with open(base_yml_path, 'w') as f:
    yaml.dump(base_config, f)

# Create a main config file that references the base
main_config = {
    '_BASE_': ['base_config.yml'],
    'model': 'main_model',
    'epochs': 10
}

main_yml_path = os.path.join(temp_dir, 'config.yml')
with open(main_yml_path, 'w') as f:
    yaml.dump(main_config, f)

# Need to import collections.abc for the dict_merge function
import collections.abc as collectionsAbc

# Define ARGS with the file_path parameter
ARGS = {
    'file_path': main_yml_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
yaml — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type AttrDict — a AttrDict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a AttrDict 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
multiclass_nms Ran
ran; our contract draft was wrong, not the code
gjj45/DAMSDet/ppdet/modeling/post_process.py
code served (permissive licence) · get_code("0cf81b30bc14579c")
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 3, 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

# Create sample bounding boxes with format: [class_id, score, x1, y1, x2, y2]
# We'll create 6 boxes across 2 classes
bboxs = np.array([
    [0, 0.9, 10, 10, 50, 50],    # class 0, high score
    [0, 0.8, 15, 15, 55, 55],    # class 0, overlapping with first
    [0, 0.7, 100, 100, 150, 150], # class 0, non-overlapping
    [1, 0.85, 20, 20, 60, 60],   # class 1, high score
    [1, 0.75, 25, 25, 65, 65],   # class 1, overlapping with previous
    [1, 0.6, 200, 200, 250, 250], # class 1, non-overlapping
], dtype=np.float32)

num_classes = 2
match_threshold = 0.6
match_metric = 'iou'

ARGS = {
    'bboxs': bboxs,
    'num_classes': num_classes,
    'match_threshold': match_threshold,
    'match_metric': match_metric,
}
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 list, ndim 3, 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
nms Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
gjj45/DAMSDet/ppdet/modeling/post_process.py
code served (permissive licence) · get_code("c54757be76d21549")
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 2, dtype family float, shape (2, 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 numpy as np

# Create sample detections with shape [N, 5] where columns are [score, x1, y1, x2, y2]
# Create a few bounding boxes with overlapping regions
dets = np.array([
    [0.9, 10.0, 20.0, 50.0, 60.0],  # High confidence box
    [0.8, 15.0, 25.0, 55.0, 65.0],  # Overlapping box (should be suppressed with high threshold)
    [0.7, 100.0, 100.0, 150.0, 150.0],  # Non-overlapping box
    [0.6, 102.0, 102.0, 152.0, 152.0],  # Slightly overlapping with previous
], dtype=np.float32)

ARGS = {
    'dets': dets,
    'match_threshold': 0.5,
    'match_metric': 'iou'
}
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 2, dtype family float, shape (2, 5) — shape (2, 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
norm_angle Ran
ran, violated the contract we drafted
gjj45/DAMSDet/ppdet/modeling/rbox_utils.py
code served (permissive licence) · get_code("6c7db6948ecffd97")
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 numpy as np

# The function norm_angle takes two parameters:
# 1. angle - a numeric value (could be float, int, or array-like)
# 2. range - a list with two elements [min, max]

# Looking at the function body:
# - It performs arithmetic operations: (angle - range[0]) % range[1] + range[0]
# - range is indexed at [0] and [1]
# - The default range is [-np.pi / 4, np.pi]

# We'll test with a simple float angle value
angle_value = 0.5

# The range parameter has a default, but we can provide a custom one
range_value = [-np.pi / 4, np.pi]

ARGS = {
    "angle": angle_value,
    "range": range_value,
}
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 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
poly2rbox_le135_np Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
gjj45/DAMSDet/ppdet/modeling/rbox_utils.py
code served (permissive licence) · get_code("5b37cc101c76cbd0")
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 numpy as np

# The function poly2rbox_le135_np takes a polygon (list/array of 8 coordinates)
# and converts it to a rotated bounding box representation.
# It expects: poly parameter which is array-like with at least 8 elements [x1, y1, x2, y2, x3, y3, x4, y4]

# Create a valid polygon - 4 points forming a quadrilateral
# Using a simple trapezoid-like shape
poly = [0.0, 0.0, 10.0, 2.0, 11.0, 12.0, 1.0, 10.0]

ARGS = {
    "poly": poly
}
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 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
poly2rbox_oc_np Ran
ran, honoured the contract we drafted
gjj45/DAMSDet/ppdet/modeling/rbox_utils.py
code served (permissive licence) · get_code("155145950e1115ca")
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 numpy as np
import cv2

# The function poly2rbox_oc_np takes a polygon as input (8 coordinates for 4 points)
# and converts it to a rotated bounding box representation

# Create a simple polygon: 4 points forming a quadrilateral
# Format: [x1, y1, x2, y2, x3, y3, x4, y4]
poly = [0.0, 0.0, 10.0, 0.0, 10.0, 5.0, 0.0, 5.0]

ARGS = {
    "poly": poly
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
cv2, numpy — 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
dict_merge Not yet run
unverified (harvested, no recorded run)
gjj45/DAMSDet/ppdet/core/workspace.py
code served (permissive licence) · get_code("553169f24c2e1789")
How it ran

no invocation recorded.

feature_norm Not yet run
unverified (harvested, no recorded run)
gjj45/DAMSDet/ppdet/slim/distill_loss.py
code served (permissive licence) · get_code("738ddae568b175be")
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, 10 are also present in other papers whose code we hold (10 with at least one paper dated earlier, 1 the same month, 1 later) and 1 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
identity 69 other papers
48 dated earlier, 1 the same month, 20 later · 5 only as an assembly brick
1706.07296 (2017-06)
A Minimal Developmental Model Can Increase Evolvability in Soft Robots
1802.09419 (2018-02)
Stochastic Hyperparameter Optimization through Hypernetworks
1804.06055 (2018-04)
Co-occurrence Feature Learning from Skeleton Data for Action Recognition and Detection with Hierarchical Aggregation
and 66 more not named here
dump_value 4 other papers
4 dated earlier
1912.06218 (2019-12)
YOLACT++: Better Real-time Instance Segmentation
2004.10934 (2020-04)
YOLOv4: Optimal Speed and Accuracy of Object Detection
2304.08069 (2023-04)
DETRs Beat YOLOs on Real-time Object Detection
and 1 more not named here
dict_merge 3 other papers
3 dated earlier
2004.10934 (2020-04)
YOLOv4: Optimal Speed and Accuracy of Object Detection
2304.08069 (2023-04)
DETRs Beat YOLOs on Real-time Object Detection
2308.07313 (2023-08)
Group Pose: A Simple Baseline for End-to-End Multi-person Pose Estimation
load_config 3 other papers
3 dated earlier
2004.10934 (2020-04)
YOLOv4: Optimal Speed and Accuracy of Object Detection
2304.08069 (2023-04)
DETRs Beat YOLOs on Real-time Object Detection
2308.07313 (2023-08)
Group Pose: A Simple Baseline for End-to-End Multi-person Pose Estimation
get_weights_url 2 other papers
2 dated earlier
2004.10934 (2020-04)
YOLOv4: Optimal Speed and Accuracy of Object Detection
2308.07313 (2023-08)
Group Pose: A Simple Baseline for End-to-End Multi-person Pose Estimation
multiclass_nms 1 other paper
1 dated earlier
2308.07313 (2023-08)
Group Pose: A Simple Baseline for End-to-End Multi-person Pose Estimation
nms 1 other paper
1 dated earlier
2308.07313 (2023-08)
Group Pose: A Simple Baseline for End-to-End Multi-person Pose Estimation
norm_angle 1 other paper
1 dated earlier
2308.07313 (2023-08)
Group Pose: A Simple Baseline for End-to-End Multi-person Pose Estimation
poly2rbox_le135_np 1 other paper
1 dated earlier
2308.07313 (2023-08)
Group Pose: A Simple Baseline for End-to-End Multi-person Pose Estimation
poly2rbox_oc_np 1 other paper
1 dated earlier
2308.07313 (2023-08)
Group Pose: A Simple Baseline for End-to-End Multi-person Pose Estimation

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-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Infrared-visible object detection aims to achieve robust even full-day object detection by fusing the complementary information of infrared and visible images. However, highly dynamically variable complementary characteristics and commonly existing modality misalignment make the fusion of complementary information difficult. In this paper, we propose a Dynamic Adaptive Multispectral Detection Transformer (DAMSDet) to simultaneously address these two challenges. Specifically, we propose a Modality Competitive Query Selection strategy to provide useful prior information. This strategy can dynamically select basic salient modality feature representation for each object. To effectively mine the complementary information and adapt to misalignment situations, we propose a Multispectral Deformable Cross-attention module to adaptively sample and aggregate multi-semantic level features of infrared and visible images for each object. In addition, we further adopt the cascade structure of DETR to better mine complementary information. Experiments on four public datasets of different scenes demonstrate significant improvements compared to other state-of-the-art methods. The code will be released at https://github.com/gjj45/DAMSDet.

For agents

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

get_harvested_code_for_paper("2403.00326")
get_code_for_paper("2403.00326")
have("2403.00326")

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

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

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

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

Connect an agent — have() is free.