Instructions to use MedMLX/totalsegmentator-mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use MedMLX/totalsegmentator-mlx with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download MedMLX/totalsegmentator-mlx --local-dir totalsegmentator-mlx
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Download 295/plans.json from MedMLX/totalsegmentator-mlx: direct link, hf CLI and curl.
- Browser
- Download file 11.2 kB
-
https://huggingface.co/MedMLX/totalsegmentator-mlx/resolve/main/295/plans.json
- Command line
-
hf download hf://MedMLX/totalsegmentator-mlx/295/plans.json
-
curl -L -o plans.json https://huggingface.co/MedMLX/totalsegmentator-mlx/resolve/main/295/plans.json
11.2 kB
| { | |
| "dataset_name": "Dataset295_TotalSegmentator_part5_ribs_1559subj", | |
| "plans_name": "nnUNetPlans", | |
| "original_median_spacing_after_transp": [ | |
| 1.5, | |
| 1.5, | |
| 1.5 | |
| ], | |
| "original_median_shape_after_transp": [ | |
| 227, | |
| 227, | |
| 240 | |
| ], | |
| "image_reader_writer": "NibabelIOWithReorient", | |
| "transpose_forward": [ | |
| 0, | |
| 1, | |
| 2 | |
| ], | |
| "transpose_backward": [ | |
| 0, | |
| 1, | |
| 2 | |
| ], | |
| "configurations": { | |
| "2d": { | |
| "data_identifier": "nnUNetPlans_2d", | |
| "preprocessor_name": "DefaultPreprocessor", | |
| "batch_size": 46, | |
| "patch_size": [ | |
| 256, | |
| 256 | |
| ], | |
| "median_image_size_in_voxels": [ | |
| 227.0, | |
| 239.0 | |
| ], | |
| "spacing": [ | |
| 1.5, | |
| 1.5 | |
| ], | |
| "normalization_schemes": [ | |
| "CTNormalization" | |
| ], | |
| "use_mask_for_norm": [ | |
| false | |
| ], | |
| "UNet_class_name": "PlainConvUNet", | |
| "UNet_base_num_features": 32, | |
| "n_conv_per_stage_encoder": [ | |
| 2, | |
| 2, | |
| 2, | |
| 2, | |
| 2, | |
| 2, | |
| 2 | |
| ], | |
| "n_conv_per_stage_decoder": [ | |
| 2, | |
| 2, | |
| 2, | |
| 2, | |
| 2, | |
| 2 | |
| ], | |
| "num_pool_per_axis": [ | |
| 6, | |
| 6 | |
| ], | |
| "pool_op_kernel_sizes": [ | |
| [ | |
| 1, | |
| 1 | |
| ], | |
| [ | |
| 2, | |
| 2 | |
| ], | |
| [ | |
| 2, | |
| 2 | |
| ], | |
| [ | |
| 2, | |
| 2 | |
| ], | |
| [ | |
| 2, | |
| 2 | |
| ], | |
| [ | |
| 2, | |
| 2 | |
| ], | |
| [ | |
| 2, | |
| 2 | |
| ] | |
| ], | |
| "conv_kernel_sizes": [ | |
| [ | |
| 3, | |
| 3 | |
| ], | |
| [ | |
| 3, | |
| 3 | |
| ], | |
| [ | |
| 3, | |
| 3 | |
| ], | |
| [ | |
| 3, | |
| 3 | |
| ], | |
| [ | |
| 3, | |
| 3 | |
| ], | |
| [ | |
| 3, | |
| 3 | |
| ], | |
| [ | |
| 3, | |
| 3 | |
| ] | |
| ], | |
| "unet_max_num_features": 512, | |
| "resampling_fn_data": "resample_data_or_seg_to_shape", | |
| "resampling_fn_seg": "resample_data_or_seg_to_shape", | |
| "resampling_fn_data_kwargs": { | |
| "is_seg": false, | |
| "order": 3, | |
| "order_z": 0, | |
| "force_separate_z": null | |
| }, | |
| "resampling_fn_seg_kwargs": { | |
| "is_seg": true, | |
| "order": 1, | |
| "order_z": 0, | |
| "force_separate_z": null | |
| }, | |
| "resampling_fn_probabilities": "resample_data_or_seg_to_shape", | |
| "resampling_fn_probabilities_kwargs": { | |
| "is_seg": false, | |
| "order": 1, | |
| "order_z": 0, | |
| "force_separate_z": null | |
| }, | |
| "batch_dice": true | |
| }, | |
| "3d_lowres": { | |
| "data_identifier": "nnUNetPlans_3d_lowres", | |
| "preprocessor_name": "DefaultPreprocessor", | |
| "batch_size": 2, | |
| "patch_size": [ | |
| 128, | |
| 128, | |
| 128 | |
| ], | |
| "median_image_size_in_voxels": [ | |
| 196, | |
| 196, | |
| 206 | |
| ], | |
| "spacing": [ | |
| 1.7389111114500002, | |
| 1.7389111114500002, | |
| 1.7389111114500002 | |
| ], | |
| "normalization_schemes": [ | |
| "CTNormalization" | |
| ], | |
| "use_mask_for_norm": [ | |
| false | |
| ], | |
| "UNet_class_name": "PlainConvUNet", | |
| "UNet_base_num_features": 32, | |
| "n_conv_per_stage_encoder": [ | |
| 2, | |
| 2, | |
| 2, | |
| 2, | |
| 2, | |
| 2 | |
| ], | |
| "n_conv_per_stage_decoder": [ | |
| 2, | |
| 2, | |
| 2, | |
| 2, | |
| 2 | |
| ], | |
| "num_pool_per_axis": [ | |
| 5, | |
| 5, | |
| 5 | |
| ], | |
| "pool_op_kernel_sizes": [ | |
| [ | |
| 1, | |
| 1, | |
| 1 | |
| ], | |
| [ | |
| 2, | |
| 2, | |
| 2 | |
| ], | |
| [ | |
| 2, | |
| 2, | |
| 2 | |
| ], | |
| [ | |
| 2, | |
| 2, | |
| 2 | |
| ], | |
| [ | |
| 2, | |
| 2, | |
| 2 | |
| ], | |
| [ | |
| 2, | |
| 2, | |
| 2 | |
| ] | |
| ], | |
| "conv_kernel_sizes": [ | |
| [ | |
| 3, | |
| 3, | |
| 3 | |
| ], | |
| [ | |
| 3, | |
| 3, | |
| 3 | |
| ], | |
| [ | |
| 3, | |
| 3, | |
| 3 | |
| ], | |
| [ | |
| 3, | |
| 3, | |
| 3 | |
| ], | |
| [ | |
| 3, | |
| 3, | |
| 3 | |
| ], | |
| [ | |
| 3, | |
| 3, | |
| 3 | |
| ] | |
| ], | |
| "unet_max_num_features": 320, | |
| "resampling_fn_data": "resample_data_or_seg_to_shape", | |
| "resampling_fn_seg": "resample_data_or_seg_to_shape", | |
| "resampling_fn_data_kwargs": { | |
| "is_seg": false, | |
| "order": 3, | |
| "order_z": 0, | |
| "force_separate_z": null | |
| }, | |
| "resampling_fn_seg_kwargs": { | |
| "is_seg": true, | |
| "order": 1, | |
| "order_z": 0, | |
| "force_separate_z": null | |
| }, | |
| "resampling_fn_probabilities": "resample_data_or_seg_to_shape", | |
| "resampling_fn_probabilities_kwargs": { | |
| "is_seg": false, | |
| "order": 1, | |
| "order_z": 0, | |
| "force_separate_z": null | |
| }, | |
| "batch_dice": false, | |
| "next_stage": "3d_cascade_fullres" | |
| }, | |
| "3d_fullres": { | |
| "data_identifier": "nnUNetPlans_3d_fullres", | |
| "preprocessor_name": "DefaultPreprocessor", | |
| "batch_size": 2, | |
| "patch_size": [ | |
| 128, | |
| 128, | |
| 128 | |
| ], | |
| "median_image_size_in_voxels": [ | |
| 227.0, | |
| 227.0, | |
| 239.0 | |
| ], | |
| "spacing": [ | |
| 1.5, | |
| 1.5, | |
| 1.5 | |
| ], | |
| "normalization_schemes": [ | |
| "CTNormalization" | |
| ], | |
| "use_mask_for_norm": [ | |
| false | |
| ], | |
| "UNet_class_name": "PlainConvUNet", | |
| "UNet_base_num_features": 32, | |
| "n_conv_per_stage_encoder": [ | |
| 2, | |
| 2, | |
| 2, | |
| 2, | |
| 2, | |
| 2 | |
| ], | |
| "n_conv_per_stage_decoder": [ | |
| 2, | |
| 2, | |
| 2, | |
| 2, | |
| 2 | |
| ], | |
| "num_pool_per_axis": [ | |
| 5, | |
| 5, | |
| 5 | |
| ], | |
| "pool_op_kernel_sizes": [ | |
| [ | |
| 1, | |
| 1, | |
| 1 | |
| ], | |
| [ | |
| 2, | |
| 2, | |
| 2 | |
| ], | |
| [ | |
| 2, | |
| 2, | |
| 2 | |
| ], | |
| [ | |
| 2, | |
| 2, | |
| 2 | |
| ], | |
| [ | |
| 2, | |
| 2, | |
| 2 | |
| ], | |
| [ | |
| 2, | |
| 2, | |
| 2 | |
| ] | |
| ], | |
| "conv_kernel_sizes": [ | |
| [ | |
| 3, | |
| 3, | |
| 3 | |
| ], | |
| [ | |
| 3, | |
| 3, | |
| 3 | |
| ], | |
| [ | |
| 3, | |
| 3, | |
| 3 | |
| ], | |
| [ | |
| 3, | |
| 3, | |
| 3 | |
| ], | |
| [ | |
| 3, | |
| 3, | |
| 3 | |
| ], | |
| [ | |
| 3, | |
| 3, | |
| 3 | |
| ] | |
| ], | |
| "unet_max_num_features": 320, | |
| "resampling_fn_data": "resample_data_or_seg_to_shape", | |
| "resampling_fn_seg": "resample_data_or_seg_to_shape", | |
| "resampling_fn_data_kwargs": { | |
| "is_seg": false, | |
| "order": 3, | |
| "order_z": 0, | |
| "force_separate_z": null | |
| }, | |
| "resampling_fn_seg_kwargs": { | |
| "is_seg": true, | |
| "order": 1, | |
| "order_z": 0, | |
| "force_separate_z": null | |
| }, | |
| "resampling_fn_probabilities": "resample_data_or_seg_to_shape", | |
| "resampling_fn_probabilities_kwargs": { | |
| "is_seg": false, | |
| "order": 1, | |
| "order_z": 0, | |
| "force_separate_z": null | |
| }, | |
| "batch_dice": true | |
| }, | |
| "3d_cascade_fullres": { | |
| "inherits_from": "3d_fullres", | |
| "previous_stage": "3d_lowres" | |
| } | |
| }, | |
| "experiment_planner_used": "ExperimentPlanner", | |
| "label_manager": "LabelManager", | |
| "foreground_intensity_properties_per_channel": { | |
| "0": { | |
| "max": 21501.0, | |
| "mean": 291.98966240726804, | |
| "median": 220.0, | |
| "min": -2437.0, | |
| "percentile_00_5": -110.0, | |
| "percentile_99_5": 1302.0, | |
| "std": 261.53174290110513 | |
| } | |
| } | |
| } |