twni2016 / OrganSegRSTN_PyTorch

PyTorch implementation of OrganSegRSTN - CVPR 2018
http://ccvl.jhu.edu/
MIT License
108 stars 33 forks source link

Slice thickness is the input channels? #5

Closed suoranxiu closed 5 years ago

suoranxiu commented 5 years ago

Apologizing for bothering you. I'm running this code on my own lymphoma datasets. And there are some problems when initializing parameters.

slice_thickness = 3

Slice thickness is the input channels?

class RSTN(nn.Module): def __init__(self, crop_margin=20, crop_prob=0.5,crop_sample_batch=1, n_class=3, TEST=None):

"n_class" is the output channels of the model?

twni2016 commented 5 years ago

Yes, slice_thickness and n_class should be the same number (here 3) because input and output channels should be the same.

suoranxiu commented 5 years ago

Thank you so much!