Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The format of training_samples and validation samples #1

Closed
baoqiangmaUMCG opened this issue Jun 28, 2023 · 4 comments
Closed

The format of training_samples and validation samples #1

baoqiangmaUMCG opened this issue Jun 28, 2023 · 4 comments

Comments

@baoqiangmaUMCG
Copy link

It is unclear what the training_samples and validation samples files should be prepared. It would be nice to show it for implement your codes

@MungoMeng
Copy link
Owner

Hi Baoqiang, thanks for your question!

The 'training_samples' or 'valid_samples' should be pointed to a '.npy' file. Within the file is a list containing the file names of training/validation samples. E.g., ['Patient_1.npz', 'Patient_14npz', 'Patient_18.npz', 'Patient_22.npz']. All training/validation samples should be placed in the path 'data_dir'.

Please take a look at the code in the 'datagenerators.py'. You can define your own data loading functions for your specific data format.

@baoqiangmaUMCG
Copy link
Author

Thanks for the reply, it 's very nice work !

I did look at your datagenerators.py. Now I understand better ! Is it each 'Patient_1.npz' should include a dict {'CT': numpy, 'PET': numpy, 'Seg_tumor' : numpy , 'Seg_Node': numpy, 'Time:' 123 , 'Event:' 0 } ?

@MungoMeng
Copy link
Owner

Yes, you get it!

@baoqiangmaUMCG
Copy link
Author

Thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants