SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2108.07020 · ICCV · 2021

Towards Real-World Prohibited Item Detection: A Large-Scale X-ray Benchmark

Xianglong Liu, Longyin Wen, Libo Zhang, Yanjun Wu, Boying Wang

arXiv · PDF · Open in the Atlas

Code that ran

3 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; 0 honoured the contract we drafted, 0 violated it and 3 have no contract verdict; 0 failures of our instrument; 6 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/2108.07020.json · badge: /api/ran/2108.07020.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
bywang2018/security-dataset canonical (classifier label)
classifier basis: census
3 ran · 6 no recorded run
FunctionStatusWhere it lives
ga_loc_target Ran
ran on a synthesized input
bywang2018/security-dataset/mmdet/core/anchor/guided_anchor_target.py
code served (permissive licence) · get_code("2440313353f0c835")
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)

# Create ground truth bboxes for 2 images
# Format: [x1, y1, x2, y2] for each bbox
# Image 1: 2 bboxes
gt_bboxes_img1 = torch.tensor([
    [10.0, 10.0, 50.0, 50.0],
    [60.0, 60.0, 100.0, 100.0]
], dtype=torch.float32)

# Image 2: 1 bbox
gt_bboxes_img2 = torch.tensor([
    [20.0, 20.0, 80.0, 80.0]
], dtype=torch.float32)

gt_bboxes_list = [gt_bboxes_img1, gt_bboxes_img2]

# Feature map sizes at different pyramid levels
# Format: (height, width) for each level
featmap_sizes = [
    (64, 64),   # Level 0
    (32, 32),   # Level 1
    (16, 16),   # Level 2
]

# Anchor configuration
anchor_scale = 4
anchor_strides = [4, 8, 16]  # Stride for each pyramid level

# Center and ignore ratios
center_ratio = 0.2
ignore_ratio = 0.5

ARGS = {
    'gt_bboxes_list': gt_bboxes_list,
    'featmap_sizes': featmap_sizes,
    'anchor_scale': anchor_scale,
    'anchor_strides': anchor_strides,
    'center_ratio': center_ratio,
    'ignore_ratio': ignore_ratio,
}
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
images_to_levels Ran
ran on a synthesized input
bywang2018/security-dataset/mmdet/core/anchor/anchor_target.py
code served (permissive licence) · get_code("8fa249eba3a0ce57")
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. 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)

# The function expects:
# - target: a list of tensors (one per image)
# - num_level_anchors: a list of integers representing anchor counts per level

# Create a list of target tensors (one per image)
# Each tensor has shape (num_anchors,) where num_anchors is the total across all levels
target = [
    torch.randn(7),  # Image 0: 7 total anchors
    torch.randn(7),  # Image 1: 7 total anchors
]

# Define how many anchors per level
# Total anchors = 3 + 4 = 7
num_level_anchors = [3, 4]

ARGS = {
    "target": target,
    "num_level_anchors": num_level_anchors,
}
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 — a list 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
images_to_levels Ran
ran on a synthesized input
bywang2018/security-dataset/mmdet/core/anchor/point_target.py
code served (permissive licence) · get_code("99bbbfc95abdc86a")
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. 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)

# Analyzing the function:
# - target: a list of tensors (one per image) that will be stacked into shape (num_images, total_grid_points)
# - num_level_grids: a list of integers representing grid counts per level
# 
# The function stacks targets, then splits them by level based on num_level_grids

# Create target list - 2 images with features at different grid points
# Total grid points should equal sum of num_level_grids
num_level_grids = [6, 4, 2]  # 3 levels with 6, 4, 2 grid points respectively
total_grid_points = sum(num_level_grids)  # 12

# Create 2 image targets, each with 12 grid point features
target = [
    torch.randn(total_grid_points),  # image 0
    torch.randn(total_grid_points),  # image 1
]

ARGS = {
    "target": target,
    "num_level_grids": num_level_grids,
}
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 — a list 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
anchor_target Not yet run
unverified (harvested, no recorded run)
bywang2018/security-dataset/mmdet/core/anchor/anchor_target.py
code served (permissive licence) · get_code("6a7ed994a87db611")
How it ran

no invocation recorded.

anchor_target_single Not yet run
unverified (harvested, no recorded run)
bywang2018/security-dataset/mmdet/core/anchor/anchor_target.py
code served (permissive licence) · get_code("1dd00ccb42e850dc")
How it ran

no invocation recorded.

calc_region Not yet run
unverified (harvested, no recorded run)
bywang2018/security-dataset/mmdet/core/anchor/guided_anchor_target.py
code served (permissive licence) · get_code("736c7ce8a0faa02a")
How it ran

no invocation recorded.

ga_shape_target Not yet run
unverified (harvested, no recorded run)
bywang2018/security-dataset/mmdet/core/anchor/guided_anchor_target.py
code served (permissive licence) · get_code("e3463fa8772a18a9")
How it ran

no invocation recorded.

point_target Not yet run
unverified (harvested, no recorded run)
bywang2018/security-dataset/mmdet/core/anchor/point_target.py
code served (permissive licence) · get_code("a08ee98e88ad24e7")
How it ran

no invocation recorded.

point_target_single Not yet run
unverified (harvested, no recorded run)
bywang2018/security-dataset/mmdet/core/anchor/point_target.py
code served (permissive licence) · get_code("b660461f38b4382b")
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 (9 with at least one paper dated earlier, 0 the same month, 0 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
images_to_levels 6 other papers
6 dated earlier
1903.00621 (2019-03)
Feature Selective Anchor-Free Module for Single-Shot Object Detection
1906.07155 (2019-06)
MMDetection: Open MMLab Detection Toolbox and Benchmark
1907.03958 (2019-07)
Attentive CT Lesion Detection Using Deep Pyramid Inference with Multi-Scale Booster
and 3 more not named here
anchor_target 4 other papers
4 dated earlier
1903.00621 (2019-03)
Feature Selective Anchor-Free Module for Single-Shot Object Detection
1906.07155 (2019-06)
MMDetection: Open MMLab Detection Toolbox and Benchmark
2003.10152 (2020-03)
SOLOv2: Dynamic and Fast Instance Segmentation
and 1 more not named here
calc_region 4 other papers
4 dated earlier
1903.00621 (2019-03)
Feature Selective Anchor-Free Module for Single-Shot Object Detection
1906.07155 (2019-06)
MMDetection: Open MMLab Detection Toolbox and Benchmark
2003.10152 (2020-03)
SOLOv2: Dynamic and Fast Instance Segmentation
and 1 more not named here
ga_loc_target 4 other papers
4 dated earlier
1903.00621 (2019-03)
Feature Selective Anchor-Free Module for Single-Shot Object Detection
1906.07155 (2019-06)
MMDetection: Open MMLab Detection Toolbox and Benchmark
2003.10152 (2020-03)
SOLOv2: Dynamic and Fast Instance Segmentation
and 1 more not named here
ga_shape_target 4 other papers
4 dated earlier
1903.00621 (2019-03)
Feature Selective Anchor-Free Module for Single-Shot Object Detection
1906.07155 (2019-06)
MMDetection: Open MMLab Detection Toolbox and Benchmark
2003.10152 (2020-03)
SOLOv2: Dynamic and Fast Instance Segmentation
and 1 more not named here
point_target 4 other papers
4 dated earlier
1903.00621 (2019-03)
Feature Selective Anchor-Free Module for Single-Shot Object Detection
1906.07155 (2019-06)
MMDetection: Open MMLab Detection Toolbox and Benchmark
2003.10152 (2020-03)
SOLOv2: Dynamic and Fast Instance Segmentation
and 1 more not named here
point_target_single 4 other papers
4 dated earlier
1903.00621 (2019-03)
Feature Selective Anchor-Free Module for Single-Shot Object Detection
1906.07155 (2019-06)
MMDetection: Open MMLab Detection Toolbox and Benchmark
2003.10152 (2020-03)
SOLOv2: Dynamic and Fast Instance Segmentation
and 1 more not named here
images_to_levels 3 other papers
3 dated earlier
1906.07155 (2019-06)
MMDetection: Open MMLab Detection Toolbox and Benchmark
2003.10152 (2020-03)
SOLOv2: Dynamic and Fast Instance Segmentation
2004.06002 (2020-04)
Dynamic R-CNN: Towards High Quality Object Detection via Dynamic Training
anchor_target_single 2 other papers
2 dated earlier
1906.07155 (2019-06)
MMDetection: Open MMLab Detection Toolbox and Benchmark
2004.06002 (2020-04)
Dynamic R-CNN: Towards High Quality Object Detection via Dynamic Training

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

Automatic security inspection using computer vision technology is a challenging task in real-world scenarios due to various factors, including intra-class variance, class imbalance, and occlusion. Most of the previous methods rarely solve the cases that the prohibited items are deliberately hidden in messy objects due to the lack of large-scale datasets, restricted their applications in real-world scenarios. Towards real-world prohibited item detection, we collect a large-scale dataset, named as PIDray, which covers various cases in real-world scenarios for prohibited item detection, especially for deliberately hidden items. With an intensive amount of effort, our dataset contains 12 categories of prohibited items in 47, 677 X-ray images with high-quality annotated segmentation masks and bounding boxes. To the best of our knowledge, it is the largest prohibited items detection dataset to date. Meanwhile, we design the selective dense attention network (SDANet) to construct a strong baseline, which consists of the dense attention module and the dependency refinement module. The dense attention module formed by the spatial and channel-wise dense attentions, is designed to learn the discriminative features to boost the performance. The dependency refinement module is used to exploit the dependencies of multi-scale features. Extensive experiments conducted on the collected PIDray dataset demonstrate that the proposed method per-

For agents

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

get_harvested_code_for_paper("2108.07020")
get_code_for_paper("2108.07020")
have("2108.07020")

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

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

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

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

Connect an agent — have() is free.