Replies: 1 comment 5 replies
-
Alternatively you could just remove bad filenames as part of the pre-processing step: def get_good_filenames(filenames):
out = []
loader = LoadImage()
for file in filenames:
try:
loader(file)
except:
continue
out.append(file)
return out
filenames = get_good_filenames(all_filenames) |
Beta Was this translation helpful? Give feedback.
5 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.
-
Hello all,
I was wondering if we could add a feature for checking the file integrity during the batch processing. Let me elaborate.
If we have say a file list of say 1000 dicom images. It will be so that there are few dicom images which are corrupted or are presentation states, that is they wont be readable by SimpleITK or Pydicom. So, if the dataloader encounters such a file (a corrupted file will typically be under 10.0 K in size compared to 100s of MB for a normal dicom file), that dataloader will ignore that file instead of breaking the training process
Beta Was this translation helpful? Give feedback.
All reactions