SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1907.03958 · 2019

Attentive CT Lesion Detection Using Deep Pyramid Inference with Multi-Scale Booster

arXiv · PDF · Open in the Atlas

Code that ran

7 of 10 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 7 have no contract verdict; 0 failures 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/1907.03958.json · badge: /api/ran/1907.03958.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
shaoqb/multi_scale_booster canonical (classifier label)
classifier basis: census
7 ran · 3 no recorded run
FunctionStatusWhere it lives
FROC Ran
ran on a synthesized input
shaoqb/multi_scale_booster/utils/deep_lesion_eval.py
code served (permissive licence) · get_code("6a23f047a0243838")
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 2, 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

# Build minimal valid arguments for FROC function

# pred_bboxes: list of arrays, each array has shape (num_boxes, 5) where last column is score
# We'll create 2 images with different numbers of predicted boxes
pred_bboxes = [
    np.array([
        [10.0, 20.0, 50.0, 60.0, 0.9],
        [100.0, 120.0, 150.0, 160.0, 0.7],
    ]),
    np.array([
        [30.0, 40.0, 70.0, 80.0, 0.85],
    ])
]

# gt_bboxes: list of arrays, each array has shape (num_gt_boxes, 4) with [xmin, ymin, xmax, ymax]
# We'll create ground truth boxes for 2 images
gt_bboxes = [
    np.array([
        [12.0, 22.0, 52.0, 62.0],
        [102.0, 122.0, 152.0, 162.0],
    ]),
    np.array([
        [32.0, 42.0, 72.0, 82.0],
    ])
]

# iou_th: threshold for IoU to consider a match
iou_th = 0.5

ARGS = {
    "pred_bboxes": pred_bboxes,
    "gt_bboxes": gt_bboxes,
    "iou_th": iou_th
}
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 tuple, ndim 2, 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
add_file_handler Ran
ran on a synthesized input
shaoqb/multi_scale_booster/utils/logger.py
code served (permissive licence) · get_code("09a7057088e530ff")
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 Logger. 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 logging
import tempfile
import os

# Create a temporary directory for the log file
temp_dir = tempfile.mkdtemp()
log_filename = os.path.join(temp_dir, "test.log")

# Create a logger instance
logger = logging.getLogger("test_logger")
logger.setLevel(logging.DEBUG)

# Define arguments for add_file_handler
ARGS = {
    "logger": logger,
    "filename": log_filename,
    "mode": "w",
    "level": logging.INFO
}
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 Logger — a Logger output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Logger 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
evaluate_deep_lesion Ran
ran on a synthesized input
shaoqb/multi_scale_booster/utils/deep_lesion_eval.py
code served (permissive licence) · get_code("840ee29d5fde5e2c")
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 float64, ndim 0, 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
from scipy import interpolate
from unittest.mock import Mock

# Set random seed for reproducibility
np.random.seed(0)

# Create a mock dataset
class MockDataset:
    def __init__(self, num_images=2):
        self.num_images = num_images
    
    def __len__(self):
        return self.num_images
    
    def get_ann_info(self, idx):
        # Return ground truth bboxes in format [x1, y1, x2, y2]
        # Each image has 2 ground truth boxes
        gt_bboxes = np.array([
            [10, 10, 30, 30],
            [50, 50, 70, 70]
        ], dtype=np.float32)
        return {'bboxes': gt_bboxes}

# Create mock config
class MockConfig:
    def __init__(self):
        self.val_avg_fp = np.array([0.0, 0.1, 0.5, 1.0])
        self.val_iou_th = 0.5

# Create mock logger
class MockLogger:
    def info(self, msg):
        pass

# Create mock results - list of predictions for each image
# Each prediction is [x1, y1, x2, y2, score]
results = [
    # Results for image 0
    np.array([
        [12, 12, 28, 28, 0.95],  # High confidence, good box
        [55, 55, 65, 65, 0.85],  # High confidence, good box
        [100, 100, 110, 110, 0.5],  # Low confidence, no match
    ], dtype=np.float32),
    # Results for image 1
    np.array([
        [15, 15, 25, 25, 0.9],  # High confidence
        [52, 52, 68, 68, 0.8],  # High confidence
    ], dtype=np.float32),
]

ARGS = {
    'results': results,
    'dataset': MockDataset(num_images=2),
    'cfg': MockConfig(),
    'logger': MockLogger()
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
get_current_lr Ran
ran on a synthesized input
shaoqb/multi_scale_booster/utils/util.py
code served (permissive licence) · get_code("ac4cc928e3c9cfd5")
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 torch
import torch.nn as nn
import torch.optim as optim

# Create a simple model
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 2)
    
    def forward(self, x):
        return self.linear(x)

# Instantiate the model
model = SimpleModel()

# Create an optimizer with a specific learning rate
optimizer = optim.SGD(model.parameters(), lr=0.001)

# Define arguments for get_current_lr
ARGS = {
    'optimizer': optimizer
}
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 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
images_to_levels Ran
ran on a synthesized input
shaoqb/multi_scale_booster/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
parse_losses Ran
ran on a synthesized input
shaoqb/multi_scale_booster/utils/util.py
code served (permissive licence) · get_code("f4d9100ab1cd7fbb")
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 collections import OrderedDict

torch.manual_seed(0)

# Create sample losses dictionary with various tensor and list formats
losses_dict = {
    'loss_cls': torch.randn(2, 4),  # Single tensor
    'loss_reg': torch.randn(3, 5),  # Another single tensor
    'auxiliary_loss': [torch.randn(2, 3), torch.randn(2, 3)],  # List of tensors
}

ARGS = {
    'losses': losses_dict
}
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 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
sens_at_FP Ran
ran on a synthesized input
shaoqb/multi_scale_booster/utils/deep_lesion_eval.py
code served (permissive licence) · get_code("61f710624f96afc2")
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 1, dtype family float, shape (4,) 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
from scipy import interpolate

# Set random seed for reproducibility
np.random.seed(0)

# Create small test data for pred_bboxes
# Each element is a list of predicted bboxes with format [x1, y1, x2, y2, score]
# Image 1: 2 predictions
pred_img1 = np.array([
    [10, 10, 50, 50, 0.9],
    [60, 60, 100, 100, 0.7]
], dtype=np.float32)

# Image 2: 3 predictions
pred_img2 = np.array([
    [20, 20, 80, 80, 0.85],
    [5, 5, 30, 30, 0.6],
    [90, 90, 120, 120, 0.5]
], dtype=np.float32)

pred_bboxes = [pred_img1, pred_img2]

# Create small test data for gt_bboxes (ground truth)
# Format: [x1, y1, x2, y2]
# Image 1: 2 ground truth boxes
gt_img1 = np.array([
    [10, 10, 55, 55],
    [60, 60, 105, 105]
], dtype=np.float32)

# Image 2: 2 ground truth boxes
gt_img2 = np.array([
    [20, 20, 75, 75],
    [90, 90, 125, 125]
], dtype=np.float32)

gt_bboxes = [gt_img1, gt_img2]

# IOU threshold
iou_th = 0.5

# Average false positive rates to evaluate at
avgFP = [0.0, 0.1, 0.5, 1.0]

# Construct the ARGS dictionary
ARGS = {
    'pred_bboxes': pred_bboxes,
    'gt_bboxes': gt_bboxes,
    'avgFP': avgFP,
    'iou_th': iou_th
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (4,) — shape (4,) 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
anchor_target Not yet run
unverified (harvested, no recorded run)
shaoqb/multi_scale_booster/mmdet/core/anchor/anchor_target.py
code served (permissive licence) · get_code("91ffaaf20144a8dc")
How it ran

no invocation recorded.

anchor_target_single Not yet run
unverified (harvested, no recorded run)
shaoqb/multi_scale_booster/mmdet/core/anchor/anchor_target.py
code served (permissive licence) · get_code("bdef29aeac01e225")
How it ran

no invocation recorded.

batch_processor Not yet run
unverified (harvested, no recorded run)
shaoqb/multi_scale_booster/utils/util.py
code served (permissive licence) · get_code("792ad42ebaeb3c2e")
How it ran

no invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 1 later) and 9 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
2 dated earlier, 4 later
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 3 more not named here

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

Accurate lesion detection in computer tomography (CT) slices benefits pathologic organ analysis in the medical diagnosis process. More recently, it has been tackled as an object detection problem using the Convolutional Neural Networks (CNNs). Despite the achievements from off-the-shelf CNN models, the current detection accuracy is limited by the inability of CNNs on lesions at vastly different scales. In this paper, we propose a Multi-Scale Booster (MSB) with channel and spatial attention integrated into the backbone Feature Pyramid Network (FPN). In each pyramid level, the proposed MSB captures fine-grained scale variations by using Hierarchically Dilated Convolutions (HDC). Meanwhile, the proposed channel and spatial attention modules increase the network's capability of selecting relevant features response for lesion detection. Extensive experiments on the DeepLesion benchmark dataset demonstrate that the proposed method performs superiorly against state-of-the-art approaches.

For agents

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

get_harvested_code_for_paper("1907.03958")
get_code_for_paper("1907.03958")
have("1907.03958")

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

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

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

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

Connect an agent — have() is free.