segresnet-mlx 0.4.0__tar.gz → 0.4.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {segresnet_mlx-0.4.0 → segresnet_mlx-0.4.1}/PKG-INFO +13 -5
- {segresnet_mlx-0.4.0 → segresnet_mlx-0.4.1}/README.md +11 -3
- {segresnet_mlx-0.4.0 → segresnet_mlx-0.4.1}/pyproject.toml +2 -2
- {segresnet_mlx-0.4.0 → segresnet_mlx-0.4.1}/src/segresnet_mlx/__init__.py +1 -1
- {segresnet_mlx-0.4.0 → segresnet_mlx-0.4.1}/.gitignore +0 -0
- {segresnet_mlx-0.4.0 → segresnet_mlx-0.4.1}/LICENSE +0 -0
- {segresnet_mlx-0.4.0 → segresnet_mlx-0.4.1}/THIRD_PARTY_NOTICES.md +0 -0
- {segresnet_mlx-0.4.0 → segresnet_mlx-0.4.1}/src/segresnet_mlx/_arrays.py +0 -0
- {segresnet_mlx-0.4.0 → segresnet_mlx-0.4.1}/src/segresnet_mlx/_nifti.py +0 -0
- {segresnet_mlx-0.4.0 → segresnet_mlx-0.4.1}/src/segresnet_mlx/_records.py +0 -0
- {segresnet_mlx-0.4.0 → segresnet_mlx-0.4.1}/src/segresnet_mlx/_runtime.py +0 -0
- {segresnet_mlx-0.4.0 → segresnet_mlx-0.4.1}/src/segresnet_mlx/_types.py +0 -0
- {segresnet_mlx-0.4.0 → segresnet_mlx-0.4.1}/src/segresnet_mlx/inference.py +0 -0
- {segresnet_mlx-0.4.0 → segresnet_mlx-0.4.1}/src/segresnet_mlx/medmlx.py +0 -0
- {segresnet_mlx-0.4.0 → segresnet_mlx-0.4.1}/src/segresnet_mlx/network.py +0 -0
- {segresnet_mlx-0.4.0 → segresnet_mlx-0.4.1}/src/segresnet_mlx/predictor.py +0 -0
- {segresnet_mlx-0.4.0 → segresnet_mlx-0.4.1}/src/segresnet_mlx/py.typed +0 -0
- {segresnet_mlx-0.4.0 → segresnet_mlx-0.4.1}/src/segresnet_mlx/telemetry.py +0 -0
- {segresnet_mlx-0.4.0 → segresnet_mlx-0.4.1}/src/segresnet_mlx/topology.py +0 -0
- {segresnet_mlx-0.4.0 → segresnet_mlx-0.4.1}/src/segresnet_mlx/transforms.py +0 -0
- {segresnet_mlx-0.4.0 → segresnet_mlx-0.4.1}/src/segresnet_mlx/weights.py +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: segresnet-mlx
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.1
|
|
4
4
|
Summary: Segment renal arteries, veins, ureters, tumors and parenchyma in multiphase CT with MONAI SegResNet in native MLX
|
|
5
5
|
Project-URL: Homepage, https://medmlx.org
|
|
6
|
-
Project-URL: Documentation, https://github.com/MedMLX/segresnet-mlx/blob/v0.4.
|
|
6
|
+
Project-URL: Documentation, https://github.com/MedMLX/segresnet-mlx/blob/v0.4.1/README.md
|
|
7
7
|
Project-URL: Repository, https://github.com/MedMLX/segresnet-mlx
|
|
8
8
|
Project-URL: Issues, https://github.com/MedMLX/segresnet-mlx/issues
|
|
9
9
|
Project-URL: Weights, https://huggingface.co/models?author=MedMLX&search=segresnet
|
|
@@ -46,13 +46,17 @@ Segment renal arteries, veins, ureters, tumors and parenchyma in multiphase CT w
|
|
|
46
46
|
|
|
47
47
|
[](https://pypi.org/project/segresnet-mlx/)
|
|
48
48
|
[](https://pypi.org/project/segresnet-mlx/)
|
|
49
|
-
[](https://github.com/MedMLX/segresnet-mlx/blob/v0.4.
|
|
49
|
+
[](https://github.com/MedMLX/segresnet-mlx/blob/v0.4.1/LICENSE)
|
|
50
50
|
[](https://github.com/ml-explore/mlx)
|
|
51
51
|
[](https://huggingface.co/MedMLX/segresnet-renal-cect-mlx)
|
|
52
52
|
[](https://github.com/MedMLX/medmlx)
|
|
53
53
|
|
|
54
54
|
[Weights](https://huggingface.co/MedMLX/segresnet-renal-cect-mlx) · [Upstream bundle](https://github.com/Project-MONAI/model-zoo/tree/dev/models/renalStructures_CECT_segmentation) · [MedMLX](https://github.com/MedMLX/medmlx)
|
|
55
55
|
|
|
56
|
+
<img src="https://raw.githubusercontent.com/MedMLX/segresnet-mlx/main/docs/example.png" alt="Venous-phase CT of a left kidney with a renal tumor, the predicted renal labels on that slice, and a 3D view of the predicted kidney, tumor, vessels and collecting system" width="100%">
|
|
57
|
+
|
|
58
|
+
<sub>Three-phase CT from <a href="https://doi.org/10.7937/k9/tcia.2018.oblamn27">CPTAC-CCRCC</a> 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.</sub>
|
|
59
|
+
|
|
56
60
|
</div>
|
|
57
61
|
|
|
58
62
|
| Input | Output |
|
|
@@ -68,7 +72,7 @@ Segment renal arteries, veins, ureters, tumors and parenchyma in multiphase CT w
|
|
|
68
72
|
```bash
|
|
69
73
|
uv venv --python 3.13
|
|
70
74
|
source .venv/bin/activate
|
|
71
|
-
uv pip install "segresnet-mlx>=0.4.
|
|
75
|
+
uv pip install "segresnet-mlx>=0.4.1"
|
|
72
76
|
```
|
|
73
77
|
|
|
74
78
|
## Run
|
|
@@ -105,6 +109,10 @@ or as the file itself.
|
|
|
105
109
|
Inputs are finite 3D volumes on one voxel grid, with spatial units in millimetres or
|
|
106
110
|
unspecified. The mask is written on the input grid as the NIfTI reader corrects it.
|
|
107
111
|
|
|
112
|
+
The model was trained on CT cropped to the kidney region. Crop around each kidney,
|
|
113
|
+
with a margin of about 15 mm, before running it: on a wider field of view it can label
|
|
114
|
+
vertebral bodies or liver as neoplasm.
|
|
115
|
+
|
|
108
116
|
The mask is float32 with labels 1 artery, 2 vein, 3 ureter, 4 neoplasm and
|
|
109
117
|
5 parenchyma; where classes overlap, the lower label wins.
|
|
110
118
|
|
|
@@ -163,4 +171,4 @@ For Codex, use `codex mcp add medmlx -- "$MEDMLX" serve --root "$HOME/medmlx-wor
|
|
|
163
171
|
|
|
164
172
|
## License
|
|
165
173
|
|
|
166
|
-
[Apache-2.0](https://github.com/MedMLX/segresnet-mlx/blob/v0.4.
|
|
174
|
+
[Apache-2.0](https://github.com/MedMLX/segresnet-mlx/blob/v0.4.1/LICENSE). See [third-party notices](https://github.com/MedMLX/segresnet-mlx/blob/v0.4.1/THIRD_PARTY_NOTICES.md). Model weights retain their publisher terms.
|
|
@@ -6,13 +6,17 @@ Segment renal arteries, veins, ureters, tumors and parenchyma in multiphase CT w
|
|
|
6
6
|
|
|
7
7
|
[](https://pypi.org/project/segresnet-mlx/)
|
|
8
8
|
[](https://pypi.org/project/segresnet-mlx/)
|
|
9
|
-
[](https://github.com/MedMLX/segresnet-mlx/blob/v0.4.
|
|
9
|
+
[](https://github.com/MedMLX/segresnet-mlx/blob/v0.4.1/LICENSE)
|
|
10
10
|
[](https://github.com/ml-explore/mlx)
|
|
11
11
|
[](https://huggingface.co/MedMLX/segresnet-renal-cect-mlx)
|
|
12
12
|
[](https://github.com/MedMLX/medmlx)
|
|
13
13
|
|
|
14
14
|
[Weights](https://huggingface.co/MedMLX/segresnet-renal-cect-mlx) · [Upstream bundle](https://github.com/Project-MONAI/model-zoo/tree/dev/models/renalStructures_CECT_segmentation) · [MedMLX](https://github.com/MedMLX/medmlx)
|
|
15
15
|
|
|
16
|
+
<img src="https://raw.githubusercontent.com/MedMLX/segresnet-mlx/main/docs/example.png" alt="Venous-phase CT of a left kidney with a renal tumor, the predicted renal labels on that slice, and a 3D view of the predicted kidney, tumor, vessels and collecting system" width="100%">
|
|
17
|
+
|
|
18
|
+
<sub>Three-phase CT from <a href="https://doi.org/10.7937/k9/tcia.2018.oblamn27">CPTAC-CCRCC</a> 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.</sub>
|
|
19
|
+
|
|
16
20
|
</div>
|
|
17
21
|
|
|
18
22
|
| Input | Output |
|
|
@@ -28,7 +32,7 @@ Segment renal arteries, veins, ureters, tumors and parenchyma in multiphase CT w
|
|
|
28
32
|
```bash
|
|
29
33
|
uv venv --python 3.13
|
|
30
34
|
source .venv/bin/activate
|
|
31
|
-
uv pip install "segresnet-mlx>=0.4.
|
|
35
|
+
uv pip install "segresnet-mlx>=0.4.1"
|
|
32
36
|
```
|
|
33
37
|
|
|
34
38
|
## Run
|
|
@@ -65,6 +69,10 @@ or as the file itself.
|
|
|
65
69
|
Inputs are finite 3D volumes on one voxel grid, with spatial units in millimetres or
|
|
66
70
|
unspecified. The mask is written on the input grid as the NIfTI reader corrects it.
|
|
67
71
|
|
|
72
|
+
The model was trained on CT cropped to the kidney region. Crop around each kidney,
|
|
73
|
+
with a margin of about 15 mm, before running it: on a wider field of view it can label
|
|
74
|
+
vertebral bodies or liver as neoplasm.
|
|
75
|
+
|
|
68
76
|
The mask is float32 with labels 1 artery, 2 vein, 3 ureter, 4 neoplasm and
|
|
69
77
|
5 parenchyma; where classes overlap, the lower label wins.
|
|
70
78
|
|
|
@@ -123,4 +131,4 @@ For Codex, use `codex mcp add medmlx -- "$MEDMLX" serve --root "$HOME/medmlx-wor
|
|
|
123
131
|
|
|
124
132
|
## License
|
|
125
133
|
|
|
126
|
-
[Apache-2.0](https://github.com/MedMLX/segresnet-mlx/blob/v0.4.
|
|
134
|
+
[Apache-2.0](https://github.com/MedMLX/segresnet-mlx/blob/v0.4.1/LICENSE). See [third-party notices](https://github.com/MedMLX/segresnet-mlx/blob/v0.4.1/THIRD_PARTY_NOTICES.md). Model weights retain their publisher terms.
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "segresnet-mlx"
|
|
7
|
-
version = "0.4.
|
|
7
|
+
version = "0.4.1"
|
|
8
8
|
description = "Segment renal arteries, veins, ureters, tumors and parenchyma in multiphase CT with MONAI SegResNet in native MLX"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.13,<3.14"
|
|
@@ -49,7 +49,7 @@ segresnet-renal-cect = "segresnet_mlx.medmlx:RENAL_CECT_MODEL"
|
|
|
49
49
|
|
|
50
50
|
[project.urls]
|
|
51
51
|
Homepage = "https://medmlx.org"
|
|
52
|
-
Documentation = "https://github.com/MedMLX/segresnet-mlx/blob/v0.4.
|
|
52
|
+
Documentation = "https://github.com/MedMLX/segresnet-mlx/blob/v0.4.1/README.md"
|
|
53
53
|
Repository = "https://github.com/MedMLX/segresnet-mlx"
|
|
54
54
|
Issues = "https://github.com/MedMLX/segresnet-mlx/issues"
|
|
55
55
|
Weights = "https://huggingface.co/models?author=MedMLX&search=segresnet"
|
|
@@ -19,7 +19,7 @@ if TYPE_CHECKING:
|
|
|
19
19
|
from segresnet_mlx.weights import load_model as load_model
|
|
20
20
|
from segresnet_mlx.weights import required_shapes as required_shapes
|
|
21
21
|
|
|
22
|
-
__version__ = "0.4.
|
|
22
|
+
__version__ = "0.4.1"
|
|
23
23
|
|
|
24
24
|
_EXPORTS = {
|
|
25
25
|
"BUNDLE_CONFIGS": "segresnet_mlx.predictor",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|