Skip to content
Discussion options

You must be logged in to vote

Hi @ebrahimebrahim, I don't understand what the purpose of your Compose in Compose is. CacheDataset will only cache deterministic transforms' results during training and Compose is inherited from Compose, it may have some issues when caching.

MONAI/monai/data/dataset.py

Lines 883 to 884 in baa17a8

# execute all the deterministic transforms
if isinstance(_transform, RandomizableTrait) or not isinstance(_transform, Transform):

class Compose(Randomizable, InvertibleTransform):

Hope it can help you, thanks!

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@ebrahimebrahim
Comment options

Answer selected by ebrahimebrahim
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ebrahimebrahim
Comment options

Comment options

You must be logged in to vote
1 reply
@ebrahimebrahim
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants