SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2609.15400 · September 2026

BSC-Net: A Small-Branch-Sensitive Structural Continuity Network for Coronary Vessel Segmentation and Quantitative Angiographic Analysis

Hao He, Song Chen, Wanxian Li, Jiaqian Qin, Qingyi Xian, Yazhi Li, Liman Li

arXiv · PDF · Open in the Atlas

Code that ran

18 of 22 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; 4 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 14 failures of our instrument; 4 no recorded run), measured 2026-11-24; 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/2609.15400.json · badge: /api/ran/2609.15400.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
liwx-deeplearning/BSC-Net canonical (classifier label)
classifier basis: census
18 ran · 4 no recorded run
FunctionStatusWhere it lives
compute_pseudo_timi Ran
ran; our contract draft was wrong, not the code
liwx-deeplearning/BSC-Net/quantitative_analysis/hemodynamics/hemodynamic_analysis.py
code served (permissive licence) · get_code("a9b5d6b05b3b5220")
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 dict. 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 numpy as np

# Set seed for reproducibility
torch.manual_seed(0)

# Construct arguments for compute_pseudo_timi
# The function takes:
# - t_start: int | None
# - t_arrival: int | None
# - frame_interval: float | None = None

# Create a valid set of arguments that exercises the main logic path
ARGS = {
    't_start': 10,
    't_arrival': 50,
    'frame_interval': 0.033
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
conv3x3 Ran
ran; our contract draft was wrong, not the code
liwx-deeplearning/BSC-Net/bscnet/model.py
code served (permissive licence) · get_code("6c78331c95fa908e")
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 Conv2d. 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 = {
    "in_channels": 3,
    "out_channels": 64,
    "stride": 1,
}
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 Conv2d — a Conv2d output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Conv2d 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
detect_arrival_frame Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
liwx-deeplearning/BSC-Net/quantitative_analysis/hemodynamics/hemodynamic_analysis.py
code served (permissive licence) · get_code("b3fe8e4455b5c8b1")
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 int, ndim 0, dtype family int, 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

# Create a simple 1D array curve with some values
# The curve will have values that cross the threshold at specific points
curve = np.array([0.1, 0.15, 0.25, 0.3, 0.35, 0.4, 0.5, 0.6], dtype=np.float32)

# Set threshold to 0.2 - values need to be >= 0.2
threshold = 0.2

# Set consecutive_frames to 2 - need 2 consecutive frames above threshold
consecutive_frames = 2

ARGS = {
    'curve': curve,
    'threshold': threshold,
    'consecutive_frames': consecutive_frames
}
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 int, ndim 0, dtype family int, 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
keep_largest_component Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
liwx-deeplearning/BSC-Net/quantitative_analysis/morphology/structural_analysis.py
code served (permissive licence) · get_code("878454838376aa31")
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 int, shape (10, 10) 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 cv2
import numpy as np

# Create a binary mask with some connected components
# Make a 10x10 binary image with multiple components
mask01 = np.zeros((10, 10), dtype=np.uint8)

# Add a large component (main vessel)
mask01[2:8, 2:8] = 1

# Add a small noise component
mask01[0:2, 0:2] = 1

ARGS = {
    "mask01": mask01
}
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 ndarray, ndim 2, dtype family int, shape (10, 10) — shape (10, 10) 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
load_data_module Ran
ran; our contract draft was wrong, not the code
liwx-deeplearning/BSC-Net/bscnet/engine.py
code served (permissive licence) · get_code("961358f6e2e3acac")
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 module. 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 importlib.util
import tempfile
from pathlib import Path

# Create a temporary Python module file that can be imported
temp_dir = tempfile.mkdtemp()
loader_file_path = Path(temp_dir) / "xca_loader.py"

# Write a minimal valid Python module
loader_file_path.write_text("""
# Minimal XCA loader module
def load_data():
    return []

class DataLoader:
    pass
""")

ARGS = {
    "loader_file": str(loader_file_path)
}
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 module — a module output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a module 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
load_dynamic_results Ran
ran; our contract draft was wrong, not the code
liwx-deeplearning/BSC-Net/quantitative_analysis/generate_figures.py
code served (permissive licence) · get_code("db5abdc2b8cf25e5")
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 dict. 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 json
import tempfile
from pathlib import Path
import numpy as np

# Create temporary directory structure with test data
temp_dir = tempfile.TemporaryDirectory()
hemodynamics_dir = Path(temp_dir.name)

# Create test case directories and metrics.json files
cases = ['v09', 'v11']
for case in cases:
    case_lower = case.lower()
    case_dir = hemodynamics_dir / case_lower
    case_dir.mkdir(parents=True, exist_ok=True)
    
    # Create metrics.json with proper structure
    frame_ids = [0, 1, 2, 3, 4]
    
    metrics_data = {
        'frame_ids': frame_ids,
        'metrics': {
            'proximal': {'AT': 1, 'TTP': 2},
            'mid': {'AT': 1, 'TTP': 3},
            'distal': {'AT': 2, 'TTP': 3}
        },
        'curves': {
            'proximal_norm': [0.0, 0.5, 1.0, 0.8, 0.6],
            'mid_norm': [0.1, 0.6, 0.9, 0.7, 0.5],
            'distal_norm': [0.2, 0.4, 0.8, 0.9, 0.7]
        }
    }
    
    metrics_file = case_dir / 'metrics.json'
    metrics_file.write_text(json.dumps(metrics_data))

ARGS = {
    'cases': ['v09', 'v11'],
    'hemodynamics_dir': hemodynamics_dir
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
load_structural_results Ran
ran; our contract draft was wrong, not the code
liwx-deeplearning/BSC-Net/quantitative_analysis/generate_figures.py
code served (permissive licence) · get_code("658782313f819cd3")
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 dict. 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 tempfile
import json
import csv
from pathlib import Path
import numpy as np

# Create temporary directory structure for test data
temp_dir = tempfile.TemporaryDirectory()
morphology_dir = Path(temp_dir.name)

# Create case directories and files
cases = ['v09', 'v11']
for case in cases:
    case_dir = morphology_dir / case.lower()
    case_dir.mkdir(parents=True, exist_ok=True)
    
    # Create metrics.json
    metrics = {
        'lesions': [
            {
                'maximum_diameter_stenosis_percent': '75.5',
                'lesion_id': 1
            }
        ]
    }
    with open(case_dir / 'metrics.json', 'w', encoding='utf-8') as f:
        json.dump(metrics, f)
    
    # Create diameter_profile.csv
    num_rows = 10
    with open(case_dir / 'diameter_profile.csv', 'w', newline='', encoding='utf-8') as f:
        writer = csv.DictWriter(
            f,
            fieldnames=[
                'normalized_centerline_position',
                'apparent_diameter_pixel',
                'reference_diameter_pixel'
            ]
        )
        writer.writeheader()
        for i in range(num_rows):
            writer.writerow({
                'normalized_centerline_position': str(float(i) / (num_rows - 1)),
                'apparent_diameter_pixel': str(3.5 + i * 0.1),
                'reference_diameter_pixel': str(4.0 + i * 0.05)
            })

ARGS = {
    'cases': ['v09', 'v11'],
    'morphology_dir': morphology_dir
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
numeric_sort_key Ran
ran, honoured the contract we drafted
liwx-deeplearning/BSC-Net/bscnet/data.py
code served (permissive licence) · get_code("320ecd8704a26369")
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 int, ndim 0, dtype family int, 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.

from pathlib import Path

ARGS = {
    "path": Path("00025.jpg")
}
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 int, ndim 0, dtype family int, 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
read_image_unicode Ran
ran, honoured the contract we drafted
liwx-deeplearning/BSC-Net/quantitative_analysis/morphology/structural_analysis.py
code served (permissive licence) · get_code("97a5a7d3adc5f842")
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 int, shape (4, 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 tempfile
import cv2
import numpy as np
from pathlib import Path

# Create a temporary valid image file
with tempfile.NamedTemporaryFile(suffix='.png', delete=False) as tmp:
    tmp_path = tmp.name
    # Create a simple valid image: 4x3 grayscale
    img_array = np.random.randint(0, 256, (4, 3), dtype=np.uint8)
    cv2.imwrite(tmp_path, img_array)

ARGS = {
    'path': Path(tmp_path),
    'flags': cv2.IMREAD_GRAYSCALE,
}
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 ndarray, ndim 2, dtype family int, shape (4, 3) — shape (4, 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
read_static_split_file Ran
ran; our contract draft was wrong, not the code
liwx-deeplearning/BSC-Net/bscnet/data.py
code served (permissive licence) · get_code("a36d7b5885057edc")
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 tempfile
from pathlib import Path

# Create a temporary split file with test data
temp_dir = tempfile.mkdtemp()
split_file_path = Path(temp_dir) / "train.txt"

# Write test split file content
split_content = """v00
v01
v00/00025.png
v02/00030.jpg
JPEGImages_Static/v03/00025.jpg
# This is a comment
v04

v05/00100.png
"""

with open(split_file_path, 'w', encoding='utf-8') as f:
    f.write(split_content)

ARGS = {
    "split_file": str(split_file_path)
}
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, 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
refine_mask_v3 Ran
ran; our contract draft was wrong, not the code
liwx-deeplearning/BSC-Net/postprocessing/vessel_repair.py
code served (permissive licence) · get_code("207b84d45a54fa3d")
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 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 numpy as np
from dataclasses import dataclass

@dataclass(frozen=True)
class PostprocessV3Config:
    support_threshold: float = 0.18
    short_gap_px: int = 12
    medium_gap_px: int = 40
    max_growth_px: int = 50
    max_angle_deg: float = 50.0
    max_area_growth_ratio: float = 0.1
    min_path_mean_probability: float = 0.48
    min_path_supported_fraction: float = 0.78
    tangent_length_px: int = 7
    path_margin_px: int = 8
    maximum_repair_width: int = 9
    adaptive_repair_width: bool = True
    repair_width_scale: float = 1.0
    lateral_support_ratio: float = 0.65
    minimum_isolated_component_area: int = 32
    enable_endpoint_to_segment: bool = True
    enable_omnidirectional_orphan_link: bool = False
    enable_one_sided_growth: bool = False

    def __post_init__(self) -> None:
        probability_values = (self.support_threshold, self.min_path_mean_probability, self.min_path_supported_fraction)
        if any((value < 0.0 or value > 1.0 for value in probability_values)):
            raise ValueError('probability parameters must be in range [0, 1]')
        if self.short_gap_px < 1:
            raise ValueError('short_gap_px must be positive')
        if self.medium_gap_px < self.short_gap_px:
            raise ValueError('medium_gap_px must be >= short_gap_px')
        if self.max_growth_px < 1:
            raise ValueError('max_growth_px must be positive')
        if not 0.0 < self.max_angle_deg < 90.0:
            raise ValueError('max_angle_deg must be in range (0, 90)')
        if self.max_area_growth_ratio < 0.0:
            raise ValueError('max_area_growth_ratio must be non-negative')
        if self.maximum_repair_width < 1:
            raise ValueError('maximum_repair_width must be positive')
        if self.repair_width_scale <= 0.0:
            raise ValueError('repair_width_scale must be positive')
        if not 0.0 < self.lateral_support_ratio <= 1.0:
            raise ValueError('lateral_support_ratio must be in range (0, 1]')
        if self.minimum_isolated_component_area < 0:
            raise ValueError('minimum_isolated_component_area must be non-negative')

base_mask = np.array([
    [0, 1, 1, 0],
    [1, 1, 1, 1],
    [1, 1, 1, 1],
    [0, 1, 1, 0]
], dtype=np.uint8)

probability = np.array([
    [0.1, 0.7, 0.8, 0.2],
    [0.6, 0.9, 0.85, 0.7],
    [0.65, 0.88, 0.9, 0.75],
    [0.15, 0.72, 0.82, 0.25]
], dtype=np.float32)

config = PostprocessV3Config()

ARGS = {
    'base_mask': base_mask,
    'probability': probability,
    'config': config
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
cv2, numpy, scipy, skimage — 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 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
repair_overlay Ran
ran, honoured the contract we drafted
liwx-deeplearning/BSC-Net/postprocessing/vessel_repair.py
code served (permissive licence) · get_code("00a5f17e37eb8249")
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 3, dtype family int, shape (3, 4, 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 base_mask: a binary mask with some True values
base_mask = np.array([
    [0, 1, 1, 0],
    [1, 1, 0, 1],
    [0, 1, 1, 1]
], dtype=np.uint8)

# Create refined_mask: another binary mask with some overlapping and different regions
refined_mask = np.array([
    [0, 1, 0, 1],
    [1, 1, 1, 0],
    [1, 1, 1, 0]
], dtype=np.uint8)

ARGS = {
    "base_mask": base_mask,
    "refined_mask": refined_mask
}
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 3, dtype family int, shape (3, 4, 3) — shape (3, 4, 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
resolve_device Ran
ran; our contract draft was wrong, not the code
liwx-deeplearning/BSC-Net/bscnet/engine.py
code served (permissive licence) · get_code("4b237633928b8e99")
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 device. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 takes a single parameter 'name' which is a string
# It tests against 'auto' and attempts to create a torch.device from it
# The function returns a torch.device

# Test case 1: 'auto' - will resolve to 'cpu' since CUDA is not available
ARGS = {
    'name': 'auto'
}
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 device — a device output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a device 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
set_paper_style Ran
ran; our contract draft was wrong, not the code
liwx-deeplearning/BSC-Net/quantitative_analysis/generate_figures.py
code served (permissive licence) · get_code("fd75108fe947f287")
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 matplotlib.pyplot as plt
from matplotlib import font_manager

ARGS = {
    'dpi': 600
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
matplotlib — 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
smooth_and_normalize_curve Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
liwx-deeplearning/BSC-Net/quantitative_analysis/hemodynamics/hemodynamic_analysis.py
code served (permissive licence) · get_code("f89c05accdb5a25b")
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 (7,) 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 simple 1D curve to smooth and normalize
curve = np.array([1.0, 2.5, 2.0, 3.5, 3.0, 4.5, 5.0], dtype=np.float32)

# Define window size for smoothing
window = 3

# Construct arguments dictionary
ARGS = {
    'curve': curve,
    'window': window
}
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 1, dtype family float, shape (7,) — shape (7,) 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
to_binary_mask Ran
ran, honoured the contract we drafted
liwx-deeplearning/BSC-Net/quantitative_analysis/morphology/structural_analysis.py
code served (permissive licence) · get_code("fce9892c32304093")
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 int, shape (4, 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 cv2
import numpy as np

# Test case 1: 3D color image (BGR)
color_image = np.random.randint(0, 256, size=(4, 5, 3), dtype=np.uint8)

# Test case 2: 2D grayscale image with few unique values
grayscale_few_values = np.array([[0, 1], [1, 0]], dtype=np.uint8)

# Test case 3: 2D grayscale image with many values (requires Otsu thresholding)
grayscale_many_values = np.random.randint(0, 256, size=(8, 10), dtype=np.uint8)

ARGS = {
    "image": color_image
}
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 ndarray, ndim 2, dtype family int, shape (4, 5) — shape (4, 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
window_partition Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
liwx-deeplearning/BSC-Net/bscnet/model.py
code served (permissive licence) · get_code("e616ae0c5f8fdf66")
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 3, dtype family float, shape (8, 16, 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 a valid input tensor with shape (batch_size, channels, height, width)
# where height and width are divisible by window_size
x = torch.randn(2, 4, 8, 8)  # batch=2, channels=4, height=8, width=8

# Window size that divides evenly into height and width
window_size = 4

ARGS = {
    "x": x,
    "window_size": window_size,
}
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 3, dtype family float, shape (8, 16, 4) — shape (8, 16, 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
window_reverse Ran
ran; our contract draft was wrong, not the code
liwx-deeplearning/BSC-Net/bscnet/model.py
code served (permissive licence) · get_code("66b84c8e175ac73a")
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 4, dtype family float, shape (2, 3, 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)

# window_reverse expects:
# - windows: a tensor of shape (batch_size * num_windows_h * num_windows_w, window_size, window_size, channels)
# - window_size: int, size of each window
# - height: int, original image height
# - width: int, original image width

# Let's set up small valid dimensions
window_size = 2
height = 4
width = 4
channels = 3

# Number of windows in each dimension
num_windows_h = height // window_size  # 2
num_windows_w = width // window_size   # 2
batch_size = 2

# Total windows tensor should have shape: (batch_size * num_windows_h * num_windows_w, window_size, window_size, channels)
total_windows = batch_size * num_windows_h * num_windows_w  # 2 * 2 * 2 = 8

windows = torch.randn(total_windows, window_size, window_size, channels)

ARGS = {
    "windows": windows,
    "window_size": window_size,
    "height": height,
    "width": width,
}
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 4, dtype family float, shape (2, 3, 4, 4) — shape (2, 3, 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
apply_paper_defaults Not yet run
unverified (harvested, no recorded run)
liwx-deeplearning/BSC-Net/bscnet/presets.py
code served (permissive licence) · get_code("7aa2c0a99d9f16bd")
How it ran

no invocation recorded.

build_parser Not yet run
unverified (harvested, no recorded run)
liwx-deeplearning/BSC-Net/bscnet/engine.py
code served (permissive licence) · get_code("84438a6e0993dcfc")
How it ran

no invocation recorded.

cv2_imread_unicode Not yet run
unverified (harvested, no recorded run)
liwx-deeplearning/BSC-Net/bscnet/data.py
code served (permissive licence) · get_code("b03e736e56686b91")
How it ran

no invocation recorded.

process_dataset Not yet run
unverified (harvested, no recorded run)
liwx-deeplearning/BSC-Net/postprocessing/vessel_repair.py
code served (permissive licence) · get_code("55661f629f654c22")
How it ran

no invocation recorded.

Also present in other papers' code

Of 22 samples lifted from this paper's linked repositories, 22 carry a function identity and 0 do not. Of the 22 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 22 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-24.

Repositories linked to this paper

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

Abstract

Vessel segmentation in X-ray coronary angiography (XCA) is a fundamental step for quantitative coronary analysis and subsequent assessment of coronary artery disease. However, accurate vessel segmentation remains challenging because of imaging noise, complex bifurcations, and the overlap of vessels and background structures, which can lead to disrupted vascular connectivity and missed small branches. In this work, we propose BSC-Net, a ResNet-U-Net-based framework tailored to improve small-vessel representation and repair vascular structural continuity. BSC-Net enhances small-vessel representation through targeted sampling and improves vascular structural continuity by integrating long-range contextual modeling and Edge-Informed Loss (EIL). BSC-Net was validated on two public XCA datasets, demonstrating state-of-the-art (SOTA) performance in coronary vessel segmentation with Dice and IoU scores of 77.8%/90.6% and 64.5%/83.0%, respectively. Furthermore, based on the obtained vessel segmentation, we performed automated quantitative coronary analysis and derived clinically relevant morphological and hemodynamic parameters, including stenosis ratio, time-to-peak, and relative propagation velocity. These results demonstrate that BSC-Net produces accurate vessel segmentation results with preserved vascular continuity for quantitative coronary assessment, enabling reliable downstream analysis and clinical evaluation of coronary artery disease.

For agents

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

get_harvested_code_for_paper("2609.15400")
get_code_for_paper("2609.15400")
have("2609.15400")

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

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

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

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

Connect an agent — have() is free.