SynSeg-Net icon indicating copy to clipboard operation
SynSeg-Net copied to clipboard

The data / folder structure

Open MalindaVania opened this issue 6 years ago • 3 comments

Hi, I would like to train my own dataset, and I checked the data structure in sublist. But it seems like there are some missing information how to structure the folder data. Could you please share the information about it? Did you make the 3 folder for the data? MRI data, CT data and the MRI Label data?

Or maybe you can share your dummy data so I can try to debug it myself?

Thank you

MalindaVania avatar Mar 29 '19 05:03 MalindaVania

Thanks for your questions. You can see the subject list files, it will show you the structure that I used. https://github.com/MASILab/SynSeg-Net/tree/master/sublist

Hi, I would like to train my own dataset, and I checked the data structure in sublist. But it seems like there are some missing information how to structure the folder data. Could you please share the information about it? Did you make the 3 folder for the data? MRI data, CT data and the MRI Label data?

Or maybe you can share your dummy data so I can try to debug it myself?

Thank you

yuankaihuo avatar Mar 29 '19 15:03 yuankaihuo

Thank you for the response, I followed the structure and change a little to put the label/segmentation. But when I check the dataset number using len(dataset), there is the different number on the train.py

line 62, 63 and 64

data_loader = CreateDataLoader(opt) dataset = data_loader.load_data() dataset_size = len(data_loader)

the dataset_size is 10 because I try to put small data. but in the debugging process when I used len(dataset) it resulted in 3, not 10 so there is a difference for data using the command in line 63 dataset=data_loader.load_data()

with the dataset that process in data_loader in line 64

Capture_debug

and I think this difference raises an error that halts the training process

image image

Do you have any suggestions about what might be the cause?

Thank you

MalindaVania avatar Apr 03 '19 00:04 MalindaVania

dataset and data_loader are two different things. It might be easier to use PyCharm or similar IDE to debug it.

Thank you for the response, I followed the structure and change a little to put the label/segmentation. But when I check the dataset number using len(dataset), there is the different number on the train.py

line 62, 63 and 64

data_loader = CreateDataLoader(opt) dataset = data_loader.load_data() dataset_size = len(data_loader)

the dataset_size is 10 because I try to put small data. but in the debugging process when I used len(dataset) it resulted in 3, not 10 so there is a difference for data using the command in line 63 dataset=data_loader.load_data()

with the dataset that process in data_loader in line 64

Capture_debug

and I think this difference raises an error that halts the training process

image image

Do you have any suggestions about what might be the cause?

Thank you

yuankaihuo avatar Apr 03 '19 02:04 yuankaihuo