Instructions to use MedMLX/musclemap-mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use MedMLX/musclemap-mlx with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download MedMLX/musclemap-mlx --local-dir musclemap-mlx
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Update the card for musclemap-mlx 0.2.0
Browse files
README.md
CHANGED
|
@@ -31,12 +31,17 @@ was performed. `conversion.json` records their inventory and source revision.
|
|
| 31 |
|
| 32 |
## Use
|
| 33 |
|
| 34 |
-
Install `musclemap-mlx` and run:
|
| 35 |
|
| 36 |
-
```
|
| 37 |
-
|
|
|
|
|
|
|
|
|
|
| 38 |
```
|
| 39 |
|
|
|
|
|
|
|
| 40 |
The package restores logits to the input grid before argmax, remaps channels to
|
| 41 |
original anatomical IDs and retains the largest connected component per label.
|
| 42 |
Chunk size affects normalization, matching upstream's independent chunk passes
|
|
|
|
| 31 |
|
| 32 |
## Use
|
| 33 |
|
| 34 |
+
Install `musclemap-mlx>=0.2.0` and run:
|
| 35 |
|
| 36 |
+
```python
|
| 37 |
+
from musclemap_mlx import run
|
| 38 |
+
|
| 39 |
+
result = run(image_path="scan.nii.gz", output_dir="out")
|
| 40 |
+
print(result["outputs"]["mask"])
|
| 41 |
```
|
| 42 |
|
| 43 |
+
The weights download from this repository on first use. To use a local copy of this bundle, pass its folder as `weights_path`.
|
| 44 |
+
|
| 45 |
The package restores logits to the input grid before argmax, remaps channels to
|
| 46 |
original anatomical IDs and retains the largest connected component per label.
|
| 47 |
Chunk size affects normalization, matching upstream's independent chunk passes
|