SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2106.00487 · 2021

Dense Nested Attention Network for Infrared Small Target Detection

arXiv · PDF · Open in the Atlas

Code that ran

6 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 3 have no contract verdict; 1 failure of our instrument; 3 no recorded run); 1 of them was also run on the host, not in the jail, by the peer-agreement lane that set its level, 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/2106.00487.json · badge: /api/ran/2106.00487.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
YeRen123455/Infrared-Small-Target-Detection canonical (classifier label)
classifier basis: census
6 ran · 3 no recorded run
FunctionStatusWhere it lives
count_param Ran
ran, honoured the contract we drafted
YeRen123455/Infrared-Small-Target-Detection/model/utils.py
pointer only (licence: MIT); the stored copy get_code serves, from FVL2020/ICCV-2023-MB-TaylorFormer, is pointer only (licence: NONE) · get_code("afd3c5ab4cb8face")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from FVL2020/ICCV-2023-MB-TaylorFormer, 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.

SoftIoULoss Ran
ran on a synthesized input
YeRen123455/Infrared-Small-Target-Detection/model/loss.py
code served (permissive licence) · get_code("ed2fe3e01cfd2ac5")
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

torch.manual_seed(0)

# Create small tensors for pred and target
# pred: raw logits (will be passed through sigmoid)
# target: binary labels (0 or 1)
# Using batch_size=2, feature_dim=4
pred = torch.randn(2, 4)
target = torch.randint(0, 2, (2, 4)).float()

ARGS = {
    "pred": pred,
    "target": target,
}
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
batch_pix_accuracy Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
YeRen123455/Infrared-Small-Target-Detection/model/metric.py
code served (permissive licence) · get_code("4dfe8308e4ca4fc5")
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 numpy as np

torch.manual_seed(0)

# Create small tensors for output and target
# output and target need to have the same shape
# The function expects them to have .float() method and support > comparison
# and == comparison, so they should be torch tensors

# Create output tensor with shape (2, 1, 4, 3) - batch=2, channels=1, height=4, width=3
output = torch.randn(2, 1, 4, 3)

# Create target tensor with shape (2, 1, 4, 3) - same shape as output
target = torch.randint(0, 2, (2, 1, 4, 3)).float()

ARGS = {
    'output': output,
    'target': target
}
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 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
load_dataset Ran
ran on a synthesized input
YeRen123455/Infrared-Small-Target-Detection/model/load_param_data.py
code served (permissive licence) · get_code("eb65264a2176852d")
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 os
import tempfile

# Create temporary directory structure with test files
temp_root = tempfile.mkdtemp()
dataset_name = "test_dataset"
split_name = "default_split"

# Create nested directories
dataset_path = os.path.join(temp_root, dataset_name, split_name)
os.makedirs(dataset_path, exist_ok=True)

# Create train.txt with sample image IDs
train_txt_path = os.path.join(dataset_path, "train.txt")
with open(train_txt_path, 'w') as f:
    f.write("image_001\n")
    f.write("image_002\n")
    f.write("image_003\n")

# Create test.txt with sample image IDs
test_txt_path = os.path.join(dataset_path, "test.txt")
with open(test_txt_path, 'w') as f:
    f.write("image_004\n")
    f.write("image_005\n")

ARGS = {
    "root": temp_root,
    "dataset": dataset_name,
    "split_method": split_name
}
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 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
load_param Ran
ran on a synthesized input
YeRen123455/Infrared-Small-Target-Detection/model/load_param_data.py
code served (permissive licence) · get_code("efaec6601b04f0c4")
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
import torch.nn as nn

torch.manual_seed(0)

ARGS = {
    'channel_size': 'one',
    'backbone': 'resnet_10'
}
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
str2bool Ran
ran, violated the contract we drafted
YeRen123455/Infrared-Small-Target-Detection/model/utils.py
code served (permissive licence) · get_code("8b9a62f72ecd14a7")
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 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 argparse

def str2bool(v):
    if v.lower() in ['true', 1]:
        return True
    elif v.lower() in ['false', 0]:
        return False
    else:
        raise argparse.ArgumentTypeError('Boolean value expected.')

# The function takes a single parameter 'v' which should be a string
# It calls .lower() on v, so v must be a string
# It checks if v.lower() is in a list containing 'true' or 1
# Valid inputs are strings like 'true', 'True', 'TRUE', 'false', 'False', 'FALSE'

ARGS = {
    'v': 'true'
}
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 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
batch_intersection_union Not yet run
unverified (harvested, no recorded run)
YeRen123455/Infrared-Small-Target-Detection/model/metric.py
pointer only (licence: MIT); the stored copy get_code serves, from ying-fu/mshnet, is pointer only (licence: NONE) · get_code("33361edfc92a6db7")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from ying-fu/mshnet, 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. No invocation recorded.

cal_tp_pos_fp_neg Not yet run
unverified (harvested, no recorded run)
YeRen123455/Infrared-Small-Target-Detection/model/metric.py
code served (permissive licence) · get_code("98adcbe4f9819fab")
How it ran

no invocation recorded.

make_dir Not yet run
unverified (harvested, no recorded run)
YeRen123455/Infrared-Small-Target-Detection/model/utils.py
code served (permissive licence) · get_code("16f62f18301c5b97")
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, 5 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 5 later) and 4 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
batch_pix_accuracy 5 other papers
5 later
2401.15583 (2024-01)
SCTransNet: Spatial-channel Cross Transformer Network for Infrared Small Target Detection
2403.19366 (2024-03)
Infrared Small Target Detection with Scale and Location Sensitivity
2409.12448 (2024-09)
Infrared Small Target Detection in Satellite Videos: A New Dataset and A Novel Recurrent Feature Refinement Framework
and 2 more not named here
str2bool 5 other papers
3 dated earlier, 2 later
1807.10165 (2018-07)
UNet++: A Nested U-Net Architecture for Medical Image Segmentation
1811.11168 (2018-11)
Deformable ConvNets v2: More Deformable, Better Results
2004.03657 (2020-04)
FedMAX: Mitigating Activation Divergence for Accurate and Communication-Efficient Federated Learning
and 2 more not named here
count_param 3 other papers
3 later
2112.05150 (2021-12)
Deep Recurrent Neural Network with Multi-scale Bi-directional Propagation for Video Deblurring
2305.19141 (2023-05)
Taylorformer: Probabilistic Modelling for Random Processes including Time Series
2308.14036 (2023-08)
MB-TaylorFormer: Multi-branch Efficient Transformer Expanded by Taylor Formula for Image Dehazing
cal_tp_pos_fp_neg 2 other papers
2 later
2403.19366 (2024-03)
Infrared Small Target Detection with Scale and Location Sensitivity
2609.00853 (2026-09)
ADGNet: Asymmetric Dual-text Guided Network for Infrared Small Target Detection
batch_intersection_union 1 other paper
1 later
2403.19366 (2024-03)
Infrared Small Target Detection with Scale and Location Sensitivity

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

Single-frame infrared small target (SIRST) detection aims at separating small targets from clutter backgrounds. With the advances of deep learning, CNN-based methods have yielded promising results in generic object detection due to their powerful modeling capability. However, existing CNN-based methods cannot be directly applied for infrared small targets since pooling layers in their networks could lead to the loss of targets in deep layers. To handle this problem, we propose a dense nested attention network (DNANet) in this paper. Specifically, we design a dense nested interactive module (DNIM) to achieve progressive interaction among high-level and low-level features. With the repeated interaction in DNIM, infrared small targets in deep layers can be maintained. Based on DNIM, we further propose a cascaded channel and spatial attention module (CSAM) to adaptively enhance multi-level features. With our DNANet, contextual information of small targets can be well incorporated and fully exploited by repeated fusion and enhancement. Moreover, we develop an infrared small target dataset (namely, NUDT-SIRST) and propose a set of evaluation metrics to conduct comprehensive performance evaluation. Experiments on both public and our self-developed datasets demonstrate the effectiveness of our method. Compared to other state-of-the-art methods, our method achieves better performance in terms of probability of detection (Pd), false-alarm rate (Fa), and intersection of union (IoU).

For agents

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

get_harvested_code_for_paper("2106.00487")
get_code_for_paper("2106.00487")
have("2106.00487")

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

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

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

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

Connect an agent — have() is free.