Skip to content

FastSurfer is not compatible with kaggle or other profile-based python configuration of the logging module #681

@chituan01

Description

@chituan01

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions