-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Description
MONAI/monai/engines/trainer.py
Lines 121 to 123 in d388d1c
decollate: whether to decollate the batch-first data to a list of data after model computation, | |
recommend `decollate=True` when `postprocessing` uses components from `monai.transforms`. | |
default to `True`. |
The default behaviour for the SupervisedTrainer slows down each training step quite a bit. The cause of this slow-down is not apparent until profiling each step. With larger batch sizes, the delay from the default decollation step increases as more tensors have to move from GPU/CPU and back.

It may be better to set the default for decollation in the supervised trainer to False
or to add a warning that the default behaviour can significantly impact training time (in our case, 2x speed up from 4 days to 2 days by disabling decollation).
Metadata
Metadata
Assignees
Labels
No labels