diff --git a/.dockerignore b/.dockerignore index c39eb89..7de87d0 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,3 +1,5 @@ # ignore deepMask # git clone <> in Dockerfile instead -app/deepMask \ No newline at end of file +app/deepMask +memray*.bin +memray*.html \ No newline at end of file diff --git a/.gitignore b/.gitignore index 10021c6..f149a58 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,6 @@ data __pycache__ notebooks/ .ipynb_checkpoints/ -*.csv \ No newline at end of file +*.csv +memray*.bin +memray*.html \ No newline at end of file diff --git a/Makefile b/Makefile index f0eab26..88cca51 100644 --- a/Makefile +++ b/Makefile @@ -18,6 +18,12 @@ clean-build: test-pipeline: ./app/inference.py $(CASE_ID) t1.nii.gz flair.nii.gz $(TMPDIR) cuda0 $(BRAIN_MASKING) $(PREPROCESS) +memray-profiling: + python3 -m memray run ./app/inference.py $(CASE_ID) t1_brain.nii.gz t2_brain.nii.gz $(TMPDIR) cuda0 0 0 + +memray-profiling-cpu: + python3 -m memray run ./app/inference.py $(CASE_ID) t1_brain.nii.gz t2_brain.nii.gz $(TMPDIR) cpu 0 0 + test-preprocess: ./app/preprocess.sh $(CASE_ID) t1.nii.gz flair.nii.gz $(TMPDIR) $(BRAIN_MASKING) $(PREPROCESS)