Bonnet is an ultra-fast whole-body bone segmentation pipeline for CT scans. It runs in seconds per scan on a single commodity GPU while maintaining reliable segmentation quality across different datasets.
-
Processed training data:
Processed Data -
Model weights:
Weights
-
Open the configs:
Bonnet/conf/config_eva.yamlBonnet/conf/data/totalseg_hu200_3000.yaml
-
Set paths and options:
- In
Bonnet/conf/config_eva.yaml, configure your output/log paths and other training options. Make sure the dataset selection points to the correct data config you are using. - In
Bonnet/conf/data/totalseg_hu200_3000.yaml, set the local paths fordataset_pathandcache_pathto match your machine.
- In
-
Run training:
python main.pyThis repo includes sample data for inference. You only need to:
- point the data config to the correct local path.
- download weights and point the main config to the checkpoint.
- Open:
Bonnet/conf/data/totalseg_hu200_3000.yaml
- Set
dataset_pathandcache_pathto the correct local path of the sample data in this GitHub repo.
- Download the model checkpoint from:
- Put the downloaded checkpoint under the
Bonnet/directory. - Open:
Bonnet/conf/config_eva.yaml
- Update the checkpoint field in this config (e.g.,
checkpoint_path/root_path/checkpoints_dir, depending on your config) to the correct local path of the downloaded weight file.
- Open:
Bonnet/conf/eval/eval_on_test.yaml
- Set:
eval_only: True
- Run:
python main.py