open-discussion > Trying Docker version
May 24, 2023  08:05 PM | Dianne Patterson
Trying Docker version
Thanks so much for creating a Docker version of the tool! This makes all the difference for me.

I was unable to download the Docker image from NITRC:  When I select the file link, I briefly see a new tab appear in the browser and then it disappears.  I did download the image from Dockerhub, and ran it like this on my Mac (Monterey).

docker run --rm -it -v ${PWD}:/input dmc2/mri_reface /input/anat/sub-219_ses-itbs_T1w.nii /input/out -imType T1

This seems to have worked, and generated 4 files:

% tree out
out
├── sub-219_ses-itbs_T1w_deFaced.nii
├── sub-219_ses-itbs_T1w_to_MCALT_FaceTemplate_Affine.txt
├── sub-219_ses-itbs_T1w_to_MCALT_FaceTemplate_InverseWarp.nii
└── sub-219_ses-itbs_T1w_to_MCALT_FaceTemplate_Warp.nii

1 directory, 4 files


However, it had some complaints (see below)

By: Christopher G. Schwarz schwarz.christopher@mayo.edu
Temp directory: /tmp/tp060b9dea_4081_4701_a89c_a72e385e87df
Target file: /input/anat/sub-219_ses-itbs_T1w.nii
Output directory: /input/out
Target image type: T1
Template: /root/.mcrCache9.4/mri_re0/images/MCALT_FaceTemplate_T1.nii
Face atlas: /root/.mcrCache9.4/mri_re0/images/MCALT_FaceMask.nii

Calculating affine parameters to template. This will take some time.
Using face-optimized affine.
Estimating warp to template using ANTS. This will take a while.
Transforming images to input space using antsApplyTransforms
Finding face regions using the atlas
Matching intensities of warped-template to input (DBC)
Adding Rician noise to template to match noise levels in input image, with multiplier 1
Estimated noise PSF: 0
Noise in target image norm region: 6.187167 (2.791533%)
Noise in template image norm region: 2.160575 (0.974810%)
Noise to add: 5.797668 (2.615798%)
Noise in target image air: 0.440074 (16.009274%)
Noise in template image air: 0.027489 (1.000019%)
Noise to add in air: 0.439215 (210.910828%))
Replacing face
Replacing air
Saving outputs
Saved: sub-219_ses-itbs_T1w_deFaced.nii
Generating renders for QC use
Can't reload '/usr/local/MATLAB/MATLAB_Runtime/v94/bin/glnxa64/libmwcoder_types.so'
Error in ADIR_deNoseWrap (line 70)
Error in ADIR_CreateFaceRender_Basic (line 89)
Error in ADIR_ReFace_Renders (line 164)
Error in ADIR_ReFace (line 1118)
MATLAB:dispatcher:loadLibrary

Should I be concerned about the complaints?

Threaded View

TitleAuthorDate
Trying Docker version
Dianne Patterson May 24, 2023
Sun Sar Dec 9, 2024
Christopher Schwarz Dec 9, 2024
Christopher Schwarz May 30, 2023
Dianne Patterson May 31, 2023
Dianne Patterson May 29, 2023
Dianne Patterson May 25, 2023
Christopher Schwarz May 26, 2023
Dianne Patterson May 28, 2023
Christopher Schwarz Jun 6, 2023
Dianne Patterson Jun 6, 2023
Christopher Schwarz Jun 7, 2023
Dianne Patterson Jun 9, 2023
Christopher Schwarz Jun 13, 2023
Adam Raikes Nov 2, 2023
Christopher Schwarz Nov 17, 2023
Christopher Schwarz May 25, 2023
Christopher Schwarz May 24, 2023