Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

segresnet-mlx

Latest version: v0.6.1

Overview

Last scanned
27 Nov 2026
Published
27 Nov 2026
PyPI package Publisher: AlfredoSandoval, org:MedMLX
0 Stars
0 Forks
14 Versions
1.5K Downloads
Python Repo language

Scan summary

segresnet-mlx was last scanned on 27 Nov 2026 at version 0.6.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 14 versions; the latest 2 were published within 5 days (23–27 Nov 2026).
  • Findings: No rules fired in version 0.6.1.
  • Downloads: 1,529 downloads.

Versions

14 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.6.1 LATEST 27 Nov 2026 No rules fired
0.6.0 23 Nov 2026 No rules fired
0.5.0 15 Nov 2026 No rules fired
0.4.1 11 Nov 2026 Not shown
0.4.0 11 Nov 2026 Not shown

No rules fired in 0.6.1

Findings

Findings for v0.6.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.6.1; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

segresnet-mlx

Segment renal arteries, veins, ureters, tumors and parenchyma in multiphase CT with MONAI SegResNet and native MLX.

PyPI Python License Apple Silicon Hugging Face MedMLX

Weights · Upstream bundle · MedMLX

Three-phase CT from CPTAC-CCRCC case C3N-00380 (The Cancer Imaging Archive, CC BY 4.0), segmented on a crop around each kidney. The 3D view smooths surfaces and hides fragments under 0.5 mL and labels more than 20 mm from the kidney.

Input Output
Arterial, venous and excretory CT · NIfTI Renal labels on the input grid
Model Weights download Peak MLX memory Measured on
segresnet-renal-cect 76 MB 4.0 GB 478×277×161 three-phase CT

Install

uv venv --python 3.13
source .venv/bin/activate
uv pip install "segresnet-mlx>=0.6.1"

Run

from segresnet_mlx import run

result = run(
    image_paths={
        "arterial": "arterial.nii.gz",
        "venous": "venous.nii.gz",
        "excretory": "excretory.nii.gz",
    },
    output_dir="out",
)
print(result["outputs"]["mask"])

Weights download from MedMLX/segresnet-renal-cect-mlx on first use; medmlx setup segresnet-renal-cect downloads ahead of time. For local weights, pass weights_path as a folder containing segresnet-renal-cect.safetensors.

Inputs and outputs
Argument Meaning
image_paths {"arterial": ..., "venous": ..., "excretory": ...}: CT phases in NIfTI, on one voxel grid
output_dir Directory for mask.nii.gz; created if missing
weights_path Optional folder containing segresnet-renal-cect.safetensors
overwrite False by default; an existing mask is replaced only when True
precision source-fp32 (default), compensated-fp32 or compensated-fp48
streaming False by default; True keeps blending intermediates and logits in temporary mapped files
scratch_dir Parent directory for the streaming files; defaults to the system temporary directory
  • Field of view: the model was trained on CT cropped to the kidney region. Crop around each kidney with a margin of about 15 mm; on a wider field of view it can label vertebral bodies or liver as neoplasm.
  • Input: finite 3D volumes on one voxel grid. Meter and micron headers are converted to millimeters, and an unspecified unit is taken as millimeters.
  • Mask: float32 on the input grid as the reader interprets its header, with labels 1 artery, 2 vein, 3 ureter, 4 neoplasm and 5 parenchyma. Where classes overlap, the lower label wins.
precision Arithmetic
source-fp32 (default) The default float32 precision
compensated-fp32 Convolution and GroupNorm accumulate in paired Metal floats, with float32 layer outputs
compensated-fp48 The pairs carry through the hidden layers and stitching runs in float64 on the host
  • Return value: {"outputs": {"mask": path}, "artifacts": {"mask": ...}, "details": {...}}. The mask artifact names the labels and the input grid; details holds run metadata.
  • Errors: invalid inputs raise InvalidInputError; missing or mismatched weights raise AssetNotReadyError; inference failures raise ModelExecutionError.
  • Streaming: temporary files are removed on success and failure. The final label volume stays in memory.
Python API
from pathlib import Path

import numpy as np
from segresnet_mlx import BUNDLE_CONFIGS, SegResNetSpec, forward_patch, load_network, predict_logits

spec = SegResNetSpec(3, 6, 32, upsample_mode="deconv")  # renal CECT network
network = load_network(Path("segresnet-renal-cect.safetensors"), spec=spec)
patch = np.zeros((1, 3, 32, 32, 32), dtype=np.float32)
logits = forward_patch(network, patch)  # float32 NCDHW -> float32 NumPy logits
config = BUNDLE_CONFIGS["renalStructures_CECT_segmentation"]
volume_logits = predict_logits(patch, config, network=network)  # stitched sliding windows
  • forward_patch needs spatial sizes divisible by 2 ** len(spec.blocks_up).
  • predict_logits takes preprocessed arrays of any size and stitches the bundle's sliding windows. Neither normalizes intensities, applies activations or maps labels.
  • load_network checks tensor names, shapes and finite float32 values against required_shapes(spec) and raises AssetNotReadyError on a mismatch.
  • WindowTelemetry and BundlePredictor record bounded progress and timing.

Use with MedMLX

Use the MedMLX MCP server to run segresnet-renal-cect from an MCP client. Weights download on first use.

uv tool install --python 3.13 "medmlx[segment,mcp]"
MEDMLX="$(uv tool dir --bin --color never)/medmlx"
mkdir -p "$HOME/medmlx-work"
claude mcp add --scope user medmlx -- "$MEDMLX" serve --root "$HOME/medmlx-work"

For Codex, use codex mcp add medmlx -- "$MEDMLX" serve --root "$HOME/medmlx-work". Other MCP clients take the same command and arguments. The same install provides the medmlx CLI, for example medmlx describe segresnet-renal-cect.

For AI agents: prefer the MedMLX MCP tools (list_models, describe_model, model_readiness, run_model, get_job) over writing Python against this package.

License

Apache-2.0. See third-party notices. Model weights retain their publisher terms.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases segresnet-mlx

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Vulnerability Insights

Compromised Claude Code extensions (versions 2.1.312 & 2.1.313) in Cursor try to install a backdoor

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Frame 2085668439 (1)
Group 1261154229