How to create a dataset and dataloader for whole images? #13705
Unanswered
malfonsoarquimea
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
Replies: 1 comment
-
Hi @malfonsoarquimea, sounds interesting!
I assume you get OOM during training. There're a number of techniques you could try to reduce the memory footprint:
I would suggest loading only a subset of pixels in an image needed for each |
Beta Was this translation helpful? Give feedback.
0 replies
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 something where I train a model using individual pixels as data points. For evaluation, I need to generate results for a number of images, each composed of many pixels. For each pixel, I am computing some gradients and storing some things in memory, so a whole image has a memory footprint larger than my VRAM.
How would you suggest approaching this problem? A dataset/dataloader that loads individual pixels (like the ones I use for training) would be enough but I would need to reconstruct the images using all the pixels in multiple batches. Do you know of any solution that is more elegant?
I really appreciate any help you can provide.
Beta Was this translation helpful? Give feedback.
All reactions