BAAI-DCAI / SegVol

The official code for "SegVol: Universal and Interactive Volumetric Medical Image Segmentation".
MIT License
248 stars 22 forks source link

There's an error during execution, please advise on how to adjust and correct it. #12

Closed wliu0218 closed 9 months ago

wliu0218 commented 9 months ago

Executing bash script/inference_demo.sh in Ubuntu results in an error.

image

Yuxin-Du-Lab commented 9 months ago

Could you please provide more information about your demo case? Is it a DICOM file/dir? And how do you set the case_path var?

wliu0218 commented 9 months ago

image The data path setting is as shown in the diagram, does running the demo involve placing CT scans in the CT folder and annotations in the GT folder? Do the files stored in the CT and GT folders have to be in DICOM format? My data is in NII format. Also, I would like to ask, can the SegVol model directly delineate lesions through the inference method without specifying box and text prompt? thanks.

Yuxin-Du-Lab commented 9 months ago

I know what is the problem. The ct_path and gt_path should be set as the path of nii.gz file. For example, if your ct case is in the path of /home/xxx/yyy.nii.gz . You need to set the ct_path as ' /home/xxx/yyy.nii.gz' to navigate to the file. Just do the same thing for gt_path.

For the second question, SegVol need at least one type of prompts(point, box or text) to drive model.

wliu0218 commented 9 months ago

The problem has been solved, thanks