Repository navigation
Sampling with replacement and Persistent Dataset #2075
lukasfolle
started this conversation in
General
Replies: 4 comments
|
Hi @lukasfolle , Thanks for your interest here. Thanks in advance. |
0 replies
|
Hi @lukasfolle , I used the notebook Nic mentioned to take a quick test. I changed the train data loader into: I did not meet errors, and the environment I used is the latest MONAI docker, the versions are: As for the error you met, can you post the code (or use a simple example code that can reproduce the error) and the error log here? |
0 replies
|
Hi @lukasfolle , I think this PR can fix your issue: #2086. Thanks. |
0 replies
|
Thanks, that linked issue seems to mention the exact same problem I had 👍 |
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.
Uh oh!
There was an error while loading. Please reload this page.
Hi, I just noticed that the cache of the
PersistentDatasetgets corrupt when using pytorch weighted random sampler (https://pytorch.org/docs/stable/data.html#torch.utils.data.WeightedRandomSampler) and multiple workers.I have the feeling that the drawing of samples with replacement creates this issue. When using
num_workers=0the error does not occur anymore, but of cource training is slowed down dramatically.Can anyone confirm this? I might as well create an issue then,
All reactions