Skip to content

Commit

Permalink
Merge pull request #283 from Deep-MI/fix_allow_root
Browse files Browse the repository at this point in the history
Added missing allow_root flag to python calls run_prediction and segstats
  • Loading branch information
LeHenschel authored Apr 4, 2023
2 parents 2764f56 + 0cb4f8f commit 4c80dad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions run_fastsurfer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ if [ "$run_seg_pipeline" == "1" ]

if [ "$run_asegdkt_module" == "1" ]
then
cmd="$python $fastsurfercnndir/run_prediction.py --t1 $t1 --asegdkt_segfile $asegdkt_segfile --conformed_name $conformed_name --brainmask_name $mask_name --aseg_name $aseg_segfile --sid $subject --seg_log $seg_log --vox_size $vox_size --batch_size $batch_size --viewagg_device $viewagg --device $device"
cmd="$python $fastsurfercnndir/run_prediction.py --t1 $t1 --asegdkt_segfile $asegdkt_segfile --conformed_name $conformed_name --brainmask_name $mask_name --aseg_name $aseg_segfile --sid $subject --seg_log $seg_log --vox_size $vox_size --batch_size $batch_size --viewagg_device $viewagg --device $device $allow_root"
echo "$cmd" |& tee -a "$seg_log"
$cmd
exit_code="${PIPESTATUS[0]}"
Expand Down Expand Up @@ -675,7 +675,7 @@ if [ "$run_seg_pipeline" == "1" ]

if [ "$run_asegdkt_module" ]
then
cmd="$python ${fastsurfercnndir}/segstats.py --segfile $asegdkt_segfile --segstatsfile $asegdkt_statsfile --normfile $norm_name --excludeid 0 --ids 2 4 5 7 8 10 11 12 13 14 15 16 17 18 24 26 28 31 41 43 44 46 47 49 50 51 52 53 54 58 60 63 77 251 252 253 254 255 1002 1003 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1034 1035 2002 2003 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2034 2035 --lut $fastsurfercnndir/config/FreeSurferColorLUT.txt --threads $threads"
cmd="$python ${fastsurfercnndir}/segstats.py --segfile $asegdkt_segfile --segstatsfile $asegdkt_statsfile --normfile $norm_name $allow_root --excludeid 0 --ids 2 4 5 7 8 10 11 12 13 14 15 16 17 18 24 26 28 31 41 43 44 46 47 49 50 51 52 53 54 58 60 63 77 251 252 253 254 255 1002 1003 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1034 1035 2002 2003 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2034 2035 --lut $fastsurfercnndir/config/FreeSurferColorLUT.txt --threads $threads"
echo "$cmd" |& tee -a "$seg_log"
$cmd |& tee -a "$seg_log"
if [ "${PIPESTATUS[0]}" -ne 0 ]
Expand All @@ -688,7 +688,7 @@ if [ "$run_seg_pipeline" == "1" ]

if [ "$run_cereb_module" == "1" ]
then
cmd="$python $cerebnetdir/run_prediction.py --t1 $t1 --asegdkt_segfile $asegdkt_segfile --conformed_name $conformed_name --cereb_segfile $cereb_segfile --seg_log $seg_log --batch_size $batch_size --viewagg_device $viewagg --device $device --async_io --threads $threads$cereb_flags"
cmd="$python $cerebnetdir/run_prediction.py --t1 $t1 --asegdkt_segfile $asegdkt_segfile --conformed_name $conformed_name --cereb_segfile $cereb_segfile --seg_log $seg_log --batch_size $batch_size --viewagg_device $viewagg --device $device --async_io --threads $threads$cereb_flags $allow_root"
echo "$cmd" |& tee -a "$seg_log"
$cmd
if [ "${PIPESTATUS[0]}" -ne 0 ]
Expand Down

0 comments on commit 4c80dad

Please sign in to comment.