forked from wasserth/TotalSegmentator
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtests.sh
executable file
·21 lines (17 loc) · 1.16 KB
/
tests.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
set -e
# Test organ predictions
TotalSegmentator -i tests/reference_files/example_ct.nii.gz -o tests/unittest_prediction --test 1
pytest -v tests/test_end_to_end.py::test_end_to_end::test_prediction_liver
pytest -v tests/test_end_to_end.py::test_end_to_end::test_prediction_vertebrae
# Test multilabel prediction
TotalSegmentator -i tests/reference_files/example_ct.nii.gz -o tests/unittest_prediction.nii.gz --ml --test 1
pytest -v tests/test_end_to_end.py::test_end_to_end::test_prediction_multilabel
# Test organ predictions - fast
TotalSegmentator -i tests/reference_files/example_ct.nii.gz -o tests/unittest_prediction_fast --fast --statistics --radiomics --test 2
pytest -v tests/test_end_to_end.py::test_end_to_end::test_prediction_liver_fast
pytest -v tests/test_end_to_end.py::test_end_to_end::test_prediction_vertebrae_fast
pytest -v tests/test_end_to_end.py::test_end_to_end::test_statistics
pytest -v tests/test_end_to_end.py::test_end_to_end::test_radiomics
# Test vessel predictions
TotalSegmentator -i tests/reference_files/example_ct.nii.gz -o tests/unittest_prediction -ta lung_vessels --test 3
pytest -v tests/test_end_to_end.py::test_end_to_end::test_lung_vessels