Skip to main content

基于 CenterNet3D 的颅内动脉瘤检测推理库 — 输入 DICOM 序列,输出 14 类血管位置概率向量。

Project description

aneurysm-detector

基于 CenterNet3D 的颅内动脉瘤检测推理库。输入 DICOM 序列文件夹,输出 14 类血管位置的概率向量。

安装

pip install aneurysm-detector

注意: 本包依赖 PyTorch。如果环境中尚未安装,请先前往 pytorch.org 按 CUDA 版本安装。

快速开始

from aneurysm_detector import run_predict, load_center_net_model, CENTER_NET_CFG

# 可选:修改模型路径(默认为 model/model_best.pth)
CENTER_NET_CFG.model_path = "/path/to/model_best.pth"

# 显式加载模型(首次调用 run_predict 时也会自动加载)
load_center_net_model()

# 推理
probs = run_predict("/path/to/dicom_series/")
print(probs)  # [0.12, 0.34, ...] 共 14 个概率值

输出标签(14 类)

索引 标签
0 Left Infraclinoid Internal Carotid Artery
1 Right Infraclinoid Internal Carotid Artery
2 Left Supraclinoid Internal Carotid Artery
3 Right Supraclinoid Internal Carotid Artery
4 Left Middle Cerebral Artery
5 Right Middle Cerebral Artery
6 Anterior Communicating Artery
7 Left Anterior Cerebral Artery
8 Right Anterior Cerebral Artery
9 Left Posterior Communicating Artery
10 Right Posterior Communicating Artery
11 Basilar Tip
12 Other Posterior Circulation
13 Aneurysm Present

许可证

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aneurysm_detector-0.1.0.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aneurysm_detector-0.1.0-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file aneurysm_detector-0.1.0.tar.gz.

File metadata

  • Download URL: aneurysm_detector-0.1.0.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for aneurysm_detector-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4ad4125f940add45c38b70503ad99762a9002797ebaf911dace5b36375bc329e
MD5 20077a5196a32b504adcc97832fe719f
BLAKE2b-256 a9e6a691bcb9fe85c2a71c483dc0d754445533ef99833c33b87e243a434ba3de

See more details on using hashes here.

File details

Details for the file aneurysm_detector-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for aneurysm_detector-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4b4235d3d8940ffddd2ec486f709c759f4b461c27c4f9cdd64b81148a8cdcc47
MD5 553df7489c32100481ab491a59a76b84
BLAKE2b-256 b0204c508816f3a4c5009cff8acf188a7d6c635feb21b993bc92c4159ffee7b0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page