Batch size #943
-
I’m trying to run Monailabel’s training pipeline on CT lymph node data. I started using spleen segmentation as the trainer. The training works fine using the spleen data, but when I’m trying to run it on the CT lymph node data I’m getting the following error: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @royak, By default, the batch size is set to one. You can change this value by redefining the self._config in the training class (https://github.com/Project-MONAI/MONAILabel/blob/main/monailabel/tasks/train/basic_train.py#L139-L152) or by setting it in the Options tab (https://youtu.be/KjwuFx0pTXU?t=235). My suggestion is to use the segmentation model, change the ROI size to (96, 96, 96) https://github.com/Project-MONAI/MONAILabel/blob/main/sample-apps/radiology/lib/configs/segmentation.py#L65 and reduce the network size https://github.com/Project-MONAI/MONAILabel/blob/main/sample-apps/radiology/lib/configs/segmentation.py#L72 Hope this helps, |
Beta Was this translation helpful? Give feedback.
Hi @royak,
By default, the batch size is set to one. You can change this value by redefining the self._config in the training class (https://github.com/Project-MONAI/MONAILabel/blob/main/monailabel/tasks/train/basic_train.py#L139-L152) or by setting it in the Options tab (https://youtu.be/KjwuFx0pTXU?t=235).
My suggestion is to use the segmentation model, change the ROI size to (96, 96, 96) https://github.com/Project-MONAI/MONAILabel/blob/main/sample-apps/radiology/lib/configs/segmentation.py#L65 and reduce the network size https://github.com/Project-MONAI/MONAILabel/blob/main/sample-apps/radiology/lib/configs/segmentation.py#L72
Hope this helps,