Replies: 2 comments 1 reply
-
The |
Beta Was this translation helpful? Give feedback.
-
Something similar to the code snippet by @wyli helped me identify many bottlenecks in my training workflow, so it is definitely worth adding as a flag to either the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
When enabling lazy resampling for existing preprocessing pipelines, comparing breakdown time and memory cost is essential.
MONAI/monai/transforms/compose.py
Lines 188 to 203 in e18097d
it's possible to modify the compose function to estimate the time roughly:
or use
from monai.utils.nvtx import Range
(e.g. https://github.com/Project-MONAI/tutorials/blob/main/acceleration/fast_training_tutorial.ipynb) which is primarily for benchmarking GPU operations.would be great to have a recommended way to enable profiling easily, perhaps integrating some of the existing tools https://github.com/Project-MONAI/MONAI/blob/dev/monai/utils/profiling.py into
Compose
?cc @atbenmurray @ericspod @Nic-Ma @KumoLiu @yiheng-wang-nv
Beta Was this translation helpful? Give feedback.
All reactions