H-DenseUNet icon indicating copy to clipboard operation
H-DenseUNet copied to clipboard

prediction about 2d-denseUnet

Open GY2019 opened this issue 5 years ago • 5 comments

hello~ how could we use the trained 2d-denseUnet model to predict the liver areas. Should we change the predict_tumor_inwindow function in test.py? thanks~

GY2019 avatar May 06 '19 01:05 GY2019

Hello @xmengli999, I have the same question. Could we predict liver segmentation using 2d-denseUnet? Thank you

hongson23 avatar May 06 '19 05:05 hongson23

The liver area is already generated and you can download "livermask". The 2d-denseUnet model used to produce accurate liver and tumor mask.

@hongson23 yes, you can.

xmengli avatar May 06 '19 05:05 xmengli

thanks for your reply. because we want to have a Transfer learning based on your dataset. so we want to know how can we use 2d-model to produce liver mask or predict the liver areas. thanks a lot

GY2019 avatar May 07 '19 05:05 GY2019

To produce the liver segmentation, I suggest you to use a standard 2D ResNet/denseunet model and you can get a satisfactory results(at least higher than 90%). You can remove the tumor label, and change the channel of the last convolution layer to 2.

xmengli avatar May 07 '19 05:05 xmengli

ok~ i get your suggestion , change the class from 3 to 2 . but how to write the prediction function? load the trained model and load the "predict_window_mulgpu" in the ./lib/func.py ?

GY2019 avatar May 07 '19 05:05 GY2019