lassoan / SlicerMONAIAuto3DSeg

Extension for 3D Slicer for running MONAI Auto3DSeg models
MIT License
61 stars 9 forks source link

How to train auto3dseg from scratch #44

Open amitjc opened 5 months ago

amitjc commented 5 months ago

Dear Experts,

Is it possible to train auto3dseg on new data and labels? We plan to generate automatic liver, HCC/cholangiocarcinoma/metastases, PV and hepatic veins segmentations, for surgical planning.

@diazandr3s Thanks for your efforts to consider incorporating auto3dseg in MONAILabel #30. Perhaps this will potentially allow training auto3dseg from scratch?

Look forward to further inputs.

Thanks and Regards, Amit.

lassoan commented 5 months ago

You can train from scratch - that's how all the existing models have been created. See step-by-step tutorials here; https://github.com/Project-MONAI/tutorials/blob/main/auto3dseg/README.md

amitjc commented 5 months ago

You can train from scratch - that's how all the existing models have been created. See step-by-step tutorials here; https://github.com/Project-MONAI/tutorials/blob/main/auto3dseg/README.md

Thank you @lassoan for the prompt response. I was wondering if model training can be achieved through Slicer interface.

diazandr3s commented 5 months ago

Hi @amitjc,

Thanks for your interest in this extension.

As @lassoan highlighted, you could train the Auto3D using the tutorial shared above or by following these examples: https://github.com/Project-MONAI/tutorials/tree/main/auto3dseg/tasks

My additional suggestions for training are:

python -m monai.apps.auto3dseg AutoRunner run --input ./my_task.yaml --algos segresnet --work_dir ./outputs/output_my_task

With regards to this:

I was wondering if model training can be achieved through Slicer interface.

This extension was meant for inference only. Training happens offline and with the instructions presented above.

Hope this helps,

amitjc commented 5 months ago

Thank you @diazandr3s from the prompt response.

"folds" = folders?

What are the differences / similarities of training Auto3DSeg and MONAILabel?

diazandr3s commented 5 months ago

Hi, @amitjc,

In this context, fold means a group of training samples. This concept is especially useful for cross validation.