Replies: 1 comment 3 replies
-
Hi @jxchen01 , I think you can combine patch_dataset = PatchDataset(...)
dataset = SmartCacheDataset(data=patch_dataset, persistent_rate=...) Thanks. |
Beta Was this translation helpful? Give feedback.
3 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.
-
Is there a way to combine PatchDataset and SmartCacheDataset?
Use case: I have 2000 large 3D microscopy images to train on. From each image, I want to randomly sample 5 patches each time. Apparently, loading or caching all 2000 x 5 = 10000 patches is not quite feasible. So, I want to borrow SmartCacheDataset, so that each epoch, I will cache 200 3D volumes, each with 5 randomly sampled patches (so, 1000 patches each epoch, which is doable for my machines), then in the next epoch, I can replace maybe 50 out of 200 3D volumes from all the 2000 3D images.
From the online resources, I still cannot figure out how to do this with current functions.
Many thanks,
Jianxu
Beta Was this translation helpful? Give feedback.
All reactions