How to collect custom batches? #15121
Unanswered
malfonsoarquimea
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I am currently working on a system that requires me to load batches composed of random pixels of a given set of images. More precisely, if there are N images in the dataset and batch size is B, for each epoch I need to collect N batches of size B, each one composed of B random pixels of the corresponding image. E.g. first batch is composed of B randomly selected pixels of the first image, etc.
What would be the recommended way to do this?
Beta Was this translation helpful? Give feedback.
All reactions