Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inference cpu Docker container #25

Open
akromeo opened this issue Mar 1, 2024 · 2 comments
Open

Inference cpu Docker container #25

akromeo opened this issue Mar 1, 2024 · 2 comments

Comments

@akromeo
Copy link

akromeo commented Mar 1, 2024

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
Copy link
Contributor

ravnoor commented Mar 5, 2024

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

Your Environment

  • Version used (e.g. v1.1.1 or commit hash):
  • Environment name and version [e.g. Docker (noelmni/deep-fcd:v1.1.2), M1/Intel macOS 14.2.1 with Conda (Python 3.7), Linux (Conda 4.11 w/ Python 3.7)]:
  • Hardware (e.g., 4 vCPUs, 16GB RAM, NVIDIA TITAN RTX w/ 24GB VRAM)
  • Using GPU or CPU:
  • Operating System (OS) and version (if not using the Docker image; e.g. Ubuntu 22.04.4 LTS):
  • OS baremetal or virtualized:

@akromeo
Copy link
Author

akromeo commented Mar 8, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants