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

I want to reproduce the trian pipeline #2

Open
wyh196646 opened this issue May 24, 2022 · 2 comments
Open

I want to reproduce the trian pipeline #2

wyh196646 opened this issue May 24, 2022 · 2 comments

Comments

@wyh196646
Copy link

could you supply the training code? My email is [email protected]

@LongxiZhou
Copy link
Owner

Please see the updated files in our Github link https://github.com/LongxiZhou/DLPE-method/blob/master/models/Unet_2D/training_control.py. This is for the training of the blood vessels.

But you should understand that DLPE contains multiple segmentation models, including lungs, heart, COVID-19 lesions, airways, blood vessels, and sub-visual lesions. And each segmentation model needs different hyper-parameters, loss functions and training protocol. All models are based on 2D U-net, and on the Google drive, there are 27 trained models that together form the DLPE method. This means it is very hard to offer you a pipeline for "one click to train all models".

Luckily, all models for DLPE are robust and not sensitive to hyper-parameters. We offered the detailed guidance for training all models: all tricks and all hyper-parameters are explained: https://static-content.springer.com/esm/art%3A10.1038%2Fs42256-022-00483-7/MediaObjects/42256_2022_483_MOESM1_ESM.pdf

We recommend you to read the guidance first, and use your own code instead. For example, the idea of "feature-enhanced" loss is easy to understand, but our implementation may be hard to understand. If you want, you can see https://github.com/LongxiZhou/DLPE-method/blob/master/sample_manager/loss_weight_cal.py for our implementation of "feature-enhanced loss". You may try other variant of such loss, like during training, change voxel-wise penalty to require the loss caused by non-airway, surface of airway and inside airway to be the same. I can tell you these variant can also reach satisfactory performance.

We hope your research goes smoothly!

Best
Longxi

@wyh196646
Copy link
Author

really appreciate about your reply

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