josand commited on
Commit
98f52cf
·
verified ·
1 Parent(s): a80858b

Update the card for musclemap-mlx 0.2.0

Browse files
Files changed (1) hide show
  1. README.md +8 -3
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
- ```sh
37
- musclemap-mlx segment --input scan.nii.gz --model-dir /path/to/this/bundle --output-dir out
 
 
 
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