How to mark transformation a possible to chache #5435
-
Hello I am using custom transform that extend MapTransform and smart cache dataset |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @jakubMitura14, thanks for your interest! If your custom transform is randomized, just inherit the Lines 842 to 845 in 9eb513a Hope it can help you, thanks! |
Beta Was this translation helpful? Give feedback.
Hi @jakubMitura14, thanks for your interest! If your custom transform is randomized, just inherit the
Randomizable
. TheCacheDataset
will cache the transform if the transform is not randomized.MONAI/monai/data/dataset.py
Lines 842 to 845 in 9eb513a
Hope it can help you, thanks!