Closed Marceloxo closed 1 year ago
Actually, the 'Seg_norm' function in /data/trans.py can convert discontinuous labels into continuous ones. So when calculating the Dice metric, continuous labels can be used naturally.
Thank you for your prompt response. I have now prepared my own dataset in '.pkl' format. Can I use your data reading logic to perform the inter-patient brain MR registration task? Apart from modifying 'seg_table' in the 'Seg_norm' function to match the labels of my own data, do I need to customize the values in the 'VOI_lbls' list?
As a side note, I have encapsulated my dataset in a manner consistent with the 'TransMorph' approach.
The seg_table and seg_list should be changed along with the dataset changes.
Thank you once again for your response amidst your busy schedule. My question has been resolved. Wishing you success in your work and studies!
Hello, I noticed that the "dice_val_VOI" in your code under the "utils.py" file doesn't seem to correspond to the labels of the LPBA40 dataset. Where does the data in this list come from, and what is it used for? I would appreciate your guidance.