Repository navigation
Expand file tree
/
Copy pathsetup.py
More file actions
112 lines (110 loc) · 5.34 KB
/
Copy pathsetup.py
File metadata and controls
112 lines (110 loc) · 5.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
from setuptools import setup, find_packages
setup(name='TotalSegmentator',
version='2.18.0',
description='Robust segmentation of 117 classes in CT images.',
long_description="See Readme.md on github for more details.",
url='https://github.com/wasserth/TotalSegmentator',
author='Jakob Wasserthal',
author_email='jakob.wasserthal@usb.ch',
python_requires='>=3.9',
license='Apache 2.0',
packages=find_packages(),
package_data={"totalsegmentator":
["resources/totalsegmentator_snomed_mapping.csv",
"resources/contrast_phase_classifiers_2024_07_19.pkl",
"resources/modality_classifiers_2025_02_24.json.0",
"resources/modality_classifiers_2025_02_24.json.1",
"resources/modality_classifiers_2025_02_24.json.2",
"resources/modality_classifiers_2025_02_24.json.3",
"resources/modality_classifiers_2025_02_24.json.4",
"resources/modality_classifiers_normalized_2025_02_24.json.0",
"resources/modality_classifiers_normalized_2025_02_24.json.1",
"resources/modality_classifiers_normalized_2025_02_24.json.2",
"resources/modality_classifiers_normalized_2025_02_24.json.3",
"resources/modality_classifiers_normalized_2025_02_24.json.4",
"resources/ct_brain_atlas_1mm.nii.gz",
"resources/spine_report/report_template_frontpage.html",
"resources/spine_report/styles.css",
"resources/spine_report/logo_black.svg",
"resources/spine_report/usb_logo_white.svg",
"resources/aorta_report/empty_bg.png",
"resources/aorta_report/logo_black.png",
"resources/aorta_report/logo_black.svg",
"resources/aorta_report/report_template_frontpage.html",
"resources/aorta_report/report_template_layout.html",
"resources/aorta_report/styles.css",
"resources/aorta_report/usb_logo_white.svg",
"resources/pulmonary_report/empty_bg.png",
"resources/pulmonary_report/logo_black.png",
"resources/pulmonary_report/logo_black.svg",
"resources/pulmonary_report/report_template_frontpage.html",
"resources/pulmonary_report/styles.css",
"resources/pulmonary_report/usb_logo_white.svg"]
},
install_requires=[
'torch>=2.1.2', # torch < 2.6.0 required if using nnunetv2 < 2.6.0
'numpy',
'SimpleITK',
'nibabel>=2.3.0',
'tqdm>=4.45.0',
'xvfbwrapper',
'nnunetv2>=2.3.1',
'requests',
'dicom2nifti',
'pyarrow',
'xmltodict',
'blosc',
'imgkit',
'jinja2',
'Pillow',
'scikit-image',
'scipy',
'matplotlib',
'networkx',
'pandas',
'scikit-learn',
'fury',
# FURY >=2 pulls pygfx -> uharfbuzz. uharfbuzz 0.56.1 wheels were built with
# Cython 3.3.0 Limited API (abi3 targeting 3.10) and crash on import when another
# Cython 3.3 Limited API module is already loaded:
# TypeError: Shared Cython type cython_function_or_method has the wrong size
# See https://github.com/cython/cython/issues/7914. 0.56.0 is the last release
# built before Cython 3.3.0.
'uharfbuzz>=0.52,<0.56.1'
],
extras_require={
'mcp': [
'mcp',
'uvicorn',
"xgboost",
],
},
zip_safe=False,
classifiers=[
'Intended Audience :: Science/Research',
'Programming Language :: Python',
'Topic :: Scientific/Engineering',
'Operating System :: Unix',
'Operating System :: MacOS'
],
entry_points={
'console_scripts': [
'TotalSegmentator=totalsegmentator.bin.TotalSegmentator:main',
'totalseg_combine_masks=totalsegmentator.bin.totalseg_combine_masks:main',
'crop_to_body=totalsegmentator.bin.crop_to_body:main',
'totalseg_import_weights=totalsegmentator.bin.totalseg_import_weights:main',
'totalseg_download_weights=totalsegmentator.bin.totalseg_download_weights:main',
'totalseg_setup_manually=totalsegmentator.bin.totalseg_setup_manually:main',
'totalseg_set_license=totalsegmentator.bin.totalseg_set_license:main',
'totalseg_get_phase=totalsegmentator.bin.totalseg_get_phase:main',
'totalseg_get_modality=totalsegmentator.bin.totalseg_get_modality:main',
'totalseg_evans_index=totalsegmentator.bin.totalseg_evans_index:main',
'totalseg_spine_report=totalsegmentator.bin.totalseg_spine_report:main',
'totalseg_aorta_report=totalsegmentator.bin.totalseg_aorta_report:main',
'totalseg_pulmonary_report=totalsegmentator.bin.totalseg_pulmonary_report:main',
'totalseg_get_body_stats=totalsegmentator.bin.totalseg_get_body_stats:main',
'totalseg_info=totalsegmentator.bin.totalseg_info:main',
'totalseg_mcp=totalsegmentator_mcp.mcp_server:main'
],
},
)