Skip to content

Unable to run preprocessing script #11

Description

@hiaoxui

Thanks for sharing the codebase, and congrats on acceptance!

I tried to run the preprocessing codes on the quickstart notebook on the sample NifTI file. My command is

python preprocessing/mri_preprocess_3d_simple.py \
    --temp_img ./preprocessing/atlases/temp_head.nii.gz \
    --input_dir ./data/sample/unprocessed \
    --output_dir ./data/sample/processed

The registration part runs successfully. However, an error happened for the brain extraction code:

ValueError: operands could not be broadcast together with shapes (108,137,113) (3,)

The error happens on this line (L87 of src/preprocessing/HD_BET/data_loading.py)

Do you have clues on this? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions