3D Binary classification using monai, pytorch based framework #6016
Harris91-lee
started this conversation in
General
Replies: 1 comment 11 replies
-
Hi @Harris91-lee, I think you can find some 3d classification tutorials in this fold. You can use a dictionary-based transform or array-based transform, it's up to you. The difference is that you should use Hope it can help you, if faced any issues, feel free to ask me, thanks! |
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone,
My name is Harris. In the past few months i started using Monai framework and i used SEGRESNET model to do single and Multi label segementation. It worked just fine.
However, now im trying to do Binary classification using monai framework as well. I have volume data of good cases in one folder and bad cases in another folder. I also have a txt file that contains the file names and their labels, for ex:
***.nii.gz 0
***.nii.gz 0
***.nii.gz 0
***.nii.gz 1
***.nii.gz 1
...... so on
So my question in short how can i prepare my data and their binary labels?
let's say the volume data will be [1,1,128,128,128], where: 1 referese to number of volume, the other 1 is the channel number, and the 128 is volume dimensions. Should i add the label at the end? so it will be like [1,1,128,128,128,1]? or should i slice the volume to 2D first then do data preparation and model training?
i found same examples for cnn,vgg16,densenet121, ... but mostly they are 2D. So im posting here my question.
I will be grateful to hear some suggestions from you.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions