SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2601.22576 · 2026

Bonnet: Ultra-Fast Whole-Body Bone Segmentation from CT Scans

Jiancheng Yang, Feng Luo, Tong Ye, Siyu Huang, Pedro Rezende, Hanjiang Zhu, Zhang Yang, Bruce Gao

arXiv · PDF

Code that ran

6 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; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 6 failures of our instrument; 5 no recorded run), measured 2026-11-23; 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/2601.22576.json · badge: /api/ran/2601.22576.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
HINTLab/Bonnet canonical (classifier label)
classifier basis: census
6 ran · 5 no recorded run
FunctionStatusWhere it lives
confusion_matrix_vectorized Ran
ran; our contract draft was wrong, not the code
HINTLab/Bonnet/src/metrics/agg_cfmat.py
code served (permissive licence) · get_code("4a950c1ada3cf9b1")
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 2, dtype family int, shape (4, 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 torch

torch.manual_seed(0)

# Create small tensors for true and predicted labels
# y_true: ground truth labels (batch_size=8, values in [0, num_classes))
# y_pred: predicted labels (batch_size=8, values in [0, num_classes))
y_true = torch.tensor([0, 1, 2, 3, 0, 1, 2, 3], dtype=torch.int64)
y_pred = torch.tensor([0, 1, 1, 3, 0, 2, 2, 3], dtype=torch.int64)

# Number of classes
num_classes = 4

ARGS = {
    'y_true': y_true,
    'y_pred': y_pred,
    'num_classes': num_classes,
}
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 2, dtype family int, shape (4, 4) — shape (4, 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
create_labels_lookup_table Ran
ran; our contract draft was wrong, not the code
HINTLab/Bonnet/src/metrics/agg_cfmat.py
code served (permissive licence) · get_code("72136490690e31c3")
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 arguments for create_labels_lookup_table
# The function expects:
# - num_classes: int (size of lookup table)
# - labels: torch.Tensor (tensor of label indices to map)

num_classes = 10
labels = torch.tensor([2, 5, 7, 1], dtype=torch.int64)

ARGS = {
    "num_classes": num_classes,
    "labels": labels,
}
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
dice_from_cfmat Ran
ran; our contract draft was wrong, not the code
HINTLab/Bonnet/src/metrics/agg_cfmat.py
code served (permissive licence) · get_code("34da770852bb8110")
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 a small confusion matrix
# Shape: (num_classes, num_classes)
# For a 4-class problem (including background)
cfmat = torch.tensor([
    [10, 1, 0, 1],
    [2, 8, 1, 0],
    [0, 1, 9, 2],
    [1, 0, 1, 7]
], dtype=torch.float32)

ARGS = {
    "cfmat": cfmat,
    "include_bg": False
}
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
masked_global_multiclass_dice Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
HINTLab/Bonnet/src/losses/occ_seg_loss.py
code served (permissive licence) · get_code("1f1e5008a485fb09")
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)

# Construct arguments for masked_global_multiclass_dice
batch_size_times_num_points = 2
num_classes = 4

# Create one-hot encoded predictions (batch_size * num_points, num_classes)
a_onehot = torch.rand(batch_size_times_num_points, num_classes)

# Create one-hot encoded ground truth (batch_size * num_points, num_classes)
b_onehot = torch.rand(batch_size_times_num_points, num_classes)

# Create mask (batch_size * num_points,)
# Some True, some False to test masking behavior
mask = torch.tensor([1, 0], dtype=torch.float32)

# include_bg parameter
include_bg = False

ARGS = {
    "a_onehot": a_onehot,
    "b_onehot": b_onehot,
    "mask": mask,
    "include_bg": include_bg
}
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
masked_per_sample_multiclass_dice Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
HINTLab/Bonnet/src/losses/occ_seg_loss.py
code served (permissive licence) · get_code("1044aec2af594d1a")
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)

# Construct tensors for the function
batch_size = 2
spatial_dim = 4
num_classes = 3

# pred_onehot: one-hot encoded predictions (batch_size, spatial_dim, num_classes)
pred_onehot = torch.randint(0, 2, (batch_size, spatial_dim, num_classes)).float()

# target_onehot: one-hot encoded targets (batch_size, spatial_dim, num_classes)
target_onehot = torch.randint(0, 2, (batch_size, spatial_dim, num_classes)).float()

# mask: binary mask (batch_size, spatial_dim)
mask = torch.randint(0, 2, (batch_size, spatial_dim)).float()

ARGS = {
    'pred_onehot': pred_onehot,
    'target_onehot': target_onehot,
    'mask': mask,
    'empty_gt_mode': 'remove_from_mean',
    'return_mode': 'mean'
}
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
numpy_onehot Ran
ran; our contract draft was wrong, not the code
HINTLab/Bonnet/src/losses/occ_seg_loss.py
code served (permissive licence) · get_code("65e4b423dd921ed2")
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 (5, 3) 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 a small set of class labels
labels = np.array([0, 1, 2, 0, 1])

# Define the number of classes
num_classes = 3

ARGS = {
    "labels": labels,
    "num_classes": num_classes
}
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 (5, 3) — shape (5, 3) 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
numpy_multiclass_dice Not yet run
unverified (harvested, no recorded run)
HINTLab/Bonnet/src/losses/seg_loss.py
code served (permissive licence) · get_code("efc9f3769693ebe2")
How it ran

no invocation recorded.

points_inside_boxes Not yet run
unverified (harvested, no recorded run)
HINTLab/Bonnet/src/losses/bbox_loss.py
code served (permissive licence) · get_code("0781e7d94e9fe08d")
How it ran

no invocation recorded.

smooth_l1_loss Not yet run
unverified (harvested, no recorded run)
HINTLab/Bonnet/src/losses/bbox_loss.py
code served (permissive licence) · get_code("2d8d6b5c58e10cfc")
How it ran

no invocation recorded.

torch_calculate_cube_corners Not yet run
unverified (harvested, no recorded run)
HINTLab/Bonnet/src/losses/bbox_loss.py
code served (permissive licence) · get_code("df821996e1aa21f1")
How it ran

no invocation recorded.

torch_multiclass_dice Not yet run
unverified (harvested, no recorded run)
HINTLab/Bonnet/src/losses/seg_loss.py
code served (permissive licence) · get_code("0fc0a649287012fb")
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, 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 11 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

This work proposes Bonnet, an ultra-fast sparse-volume pipeline for whole-body bone segmentation from CT scans. Accurate bone segmentation is important for surgical planning and anatomical analysis, but existing 3D voxel-based models such as nnU-Net and STU-Net require heavy computation and often take several minutes per scan, which limits time-critical use. The proposed Bonnet addresses this by integrating a series of novel framework components including HU-based bone thresholding, patch-wise inference with a sparse spconv-based U-Net, and multi-window fusion into a full-volume prediction. Trained on TotalSegmentator and evaluated without additional tuning on RibSeg, CT-Pelvic1K, and CT-Spine1K, Bonnet achieves high Dice across ribs, pelvis, and spine while running in only 2.69 seconds per scan on an RTX A6000. Compared to strong voxel baselines, Bonnet attains a similar accuracy but reduces inference time by roughly 25× on the same hardware and tiling setup. The toolkit and pre-trained models will be released at https://github.com/HINTLab/Bonnet.

For agents

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

get_harvested_code_for_paper("2601.22576")
get_code_for_paper("2601.22576")
have("2601.22576")

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

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

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

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

Connect an agent — have() is free.