Available lung segmentation models
masterThe package provides several pre-trained U-net models depending on your requirements:
R231: The default model. Trained on diverse data, performs slice-by-slice segmentation, extracts right/left lungs separately, and includes air pockets, tumors, and effusions. Does not include the trachea.LTRCLobes: Trained on the LTRC dataset. Segments individual lung lobes but may struggle with dense pathologies or invisible fissures.LTRCLobes_R231: A fused model that runs bothLTRCLobesandR231to improve accuracy by filling false negatives and removing false positives.R231CovidWeb: Optimized for COVID-19 CT scans, specifically those that may have been converted from regular image formats (non-HU).
# Example of selecting the COVID-optimized model via CLI
lungmask INPUT OUTPUT --modelname R231CovidWeb