Hi,
I'm using this library in Kaggle. I already specified vox_size but it came up with an error "conform.py: error: argument --vox_size: expected one argument". And as far as I know, even if I don't specify vox_size, there should exist a default value.
This is my code in Kaggle. Before this, I ran with --seg_only successfully.
! FASTSURFER_HOME=$FASTSURFER_HOME FREESURFER_HOME=$FREESURFER_HOME\ $FASTSURFER_HOME/run_fastsurfer.sh --t1 $img \ --sd "{SETUP_DIR}fastsurfer_seg" \ --sid Tutorial \ --py python3 \ --allow_root \ --fs_license "/kaggle/input/license-fastsurfer/license.txt" \ --vox_size 1
The error happened in conform.py. These are few lines at the end of the output:
================== Creating orig and rawavg from input =========================
python3 /root/fastsurfer_tutorial/fastsurfer//FastSurferCNN/data_loader/conform.py -i /root/fastsurfer_tutorial/fastsurfer_seg/Tutorial/mri/orig.mgz --check_only --vox_size min --verbose --log /root/fastsurfer_tutorial/fastsurfer_seg/Tutorial/scripts/conform.log
Reading input: /root/fastsurfer_tutorial/fastsurfer_seg/Tutorial/mri/orig.mgz ...
Input /root/fastsurfer_tutorial/fastsurfer_seg/Tutorial/mri/orig.mgz is already conformed! Exiting.
python3 /root/fastsurfer_tutorial/fastsurfer//FastSurferCNN/data_loader/conform.py -i /root/fastsurfer_tutorial/fastsurfer_seg/Tutorial/mri/aparc.DKTatlas+aseg.deep.mgz --check_only --vox_size --dtype any --verbose
usage:
Script to conform an MRI brain image to UCHAR, RAS orientation,
and 1mm or minimal isotropic voxels
USAGE:
conform.py -i <input> -o <output> <options>
OR
conform.py -i <input> --check_only <options>
Dependencies:
Python 3.8+
Numpy
https://www.numpy.org/
Nibabel to read and write FreeSurfer data
https://nipy.org/nibabel/
Original Author: Martin Reuter
Date: Jul-09-2019
conform.py: error: argument --vox_size: expected one argument
Can anyone help me with this issue?
Thank you for reading!
Hi,
I'm using this library in Kaggle. I already specified vox_size but it came up with an error "conform.py: error: argument --vox_size: expected one argument". And as far as I know, even if I don't specify vox_size, there should exist a default value.
This is my code in Kaggle. Before this, I ran with --seg_only successfully.
! FASTSURFER_HOME=$FASTSURFER_HOME FREESURFER_HOME=$FREESURFER_HOME\ $FASTSURFER_HOME/run_fastsurfer.sh --t1 $img \ --sd "{SETUP_DIR}fastsurfer_seg" \ --sid Tutorial \ --py python3 \ --allow_root \ --fs_license "/kaggle/input/license-fastsurfer/license.txt" \ --vox_size 1The error happened in conform.py. These are few lines at the end of the output:
Can anyone help me with this issue?
Thank you for reading!