Open BelieferQAQ opened 1 year ago
Thank you for your interest in my project. The current version of MedLSAM is designed for anatomical structure segmentation and localization, not specifically for nodule detection and segmentation. Therefore, it may not perform well on nodule segmentation tasks without significant modifications or adaptation. I would recommend looking for a tool or method specifically designed for nodule detection and segmentation. Best of luck with your work!
Thank your reply! but i meet some problems when i run your code , MedLSAM_inference.py。The setting code is:parser.add_argument('-c', '--config_file', type=str, default='config/test_config/test_structseg_medlam_medsam.txt', help='path to the config file')
The problem is below:
The image is not in the target orientation. Reorienting...
The image is not in the target orientation. Reorienting...
60%|████████████████████████████████████████████████████▊ | 3/5 [00:22<00:14, 7.37s/it]
Traceback (most recent call last):
File "/data/jupyter/wd/MedLSAM-LymNode/MedLSAM_Inference.py", line 93, in
Hi, This error message indicates that while performing one-hot encoding on your data, the input data contained labels that exceeded the expected range. In this case, your code expects the maximum label value to be 22 (since the size of dimension 3 is 23, and the indexing of one-hot encoding starts from 0), but it found an element with a label value of 1048576 in the input data, which caused the error.
I will suggest you check the input label to ensure all label values fall within the expected range. If you are using the original structseg dataset, I wonder if you could recheck whether your label input path is correct.
Thank you for your contribution. I currently want to perform node segmentation, which is a binary segmentation, and the dataset file is in NIFIT format. I don't need to do any prompt words, you can get the desired segmentation mask, your code can achieve this function. Looking forward to your reply.