NOEL-MNI / deepFCD

Automated Detection of Focal Cortical Dysplasia using Deep Learning
https://noel.bic.mni.mcgill.ca/projects/
BSD 3-Clause "New" or "Revised" License
10 stars 3 forks source link

Inference cpu Docker container #25

Open akromeo opened 9 months ago

akromeo commented 9 months ago

I am trying to run the inference cpu docker container however I am running into an issue that it is not setting the BRAIN_MASKING environ variable correctly and therefore not importing brain_extraction function in the image_processing script.

Error: /tmp/zou_2519.log - No such file or directory. loading nifti files registration to MNI template space performing N3 bias correction performing brain extraction using ANTsPyNet Traceback (most recent call last): File "/app/preprocess.py", line 94, in noelImageProcessor( File "/app/deepMask/app/utils/image_processing.py", line 440, in pipeline self.skull_stripping() File "/app/deepMask/app/utils/image_processing.py", line 181, in skull_stripping prob = brain_extraction(self._t1_n4, modality="t1") NameError: name 'brain_extraction' is not defined

I am running the Docker image on my Mac OS w M3 processor.

Thanks

ravnoor commented 8 months ago

Could you please fill out the following information, and the actual command executed?

Your Environment

akromeo commented 8 months ago

This is the docker command I used except I replaced $PWD w my directory. CA was the subject ID:

$ docker run --rm -it --init --env OMP_NUM_THREADS=6 --volume=$PWD/io:/io noelmni/deep-fcd:latest /app/inference.py CA T1.nii.gz Flair.nii.gz /io cpu 1 1

Not sure what version this is. Version is latest? I don’t know how to tell which docker image version that is pulling.

I am running this on my Mac OS M3 cpu but I am using the docker container which uses ubuntu base image.