uni-medical / SAM-Med3D

SAM-Med3D: An Efficient General-purpose Promptable Segmentation Model for 3D Volumetric Medical Image
Apache License 2.0
504 stars 65 forks source link

Error: When I tried to train the liver tumor #5

Closed hagersalehahmed closed 11 months ago

hagersalehahmed commented 12 months ago

When I tried to train the liver tumor, I added it to the datapath

image

But when I run python train.py this error is displayed why? the end file of nifti data in the path does not exist, why add nii.gz at the end of file name

RuntimeError: Exception thrown in SimpleITK ImageFileReader_Execute: D:\a\1\sitk\Code\IO\src\sitkImageReaderBase.cxx:97: sitk::ERROR: The file "data/train/Liver_Tumor\imagesTr\segmentation-3.nii.zip.nii.gz" does not exist.

blueyo0 commented 11 months ago

Hi, hagersalehahmed,

From what I understand of your question, did you attempt to use 'segmentation-3.nii.zip' for training? If so, I recommend unzipping the file into a .nii.gz format before using our code. As shown in our example, only .nii.gz is supported now.