-
My team is currently using the following code snippet to generate a
Where I would like to know if there is a better way of achieving the same result for optimal performance. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Hi @pcanas, sorry for I didn't get your question. You can simply set |
Beta Was this translation helpful? Give feedback.
-
No, that is not what I wanted to ask. My point is that creating a Dataset of 5 deep copied image just to later send them 1 by 1 into the DataLoader, it does not sound efficient. I remember with pytorch you could just use the My question is, how can I create this |
Beta Was this translation helpful? Give feedback.
Here is a simple demo.
BTW, you can also specify your own
collate_fn
in MONAI.MONAI/monai/data/dataloader.py
Lines 86 to 87 in 6f8e63f