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
Metadata
Release files for aneurysm-detector 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aneurysm_detector-0.1.0.tar.gz | 7.1 kB | Without provenance | Details for aneurysm_detector-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aneurysm_detector-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for aneurysm_detector-0.1.0-py3-none-any.whl |
Total release size: 15.1 kB
Release files / aneurysm_detector-0.1.0.tar.gz
| Download URL | aneurysm_detector-0.1.0.tar.gz |
|---|---|
| Size | 7.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4ad4125f940add45c38b70503ad99762a9002797ebaf911dace5b36375bc329e
|
|
BLAKE2b-256 checksum How to use checksums |
a9e6a691bcb9fe85c2a71c483dc0d754445533ef99833c33b87e243a434ba3de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.7
|
Release files / aneurysm_detector-0.1.0-py3-none-any.whl
| Download URL | aneurysm_detector-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4b4235d3d8940ffddd2ec486f709c759f4b461c27c4f9cdd64b81148a8cdcc47
|
|
BLAKE2b-256 checksum How to use checksums |
b0204c508816f3a4c5009cff8acf188a7d6c635feb21b993bc92c4159ffee7b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.7
|
Security for aneurysm-detector 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.