Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update list of files with errors in the PadChest dataset #137

Merged
merged 1 commit into from
Jun 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion torchxrayvision/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,18 @@ def __init__(self,
"216840111366964012283393834152009033102258826_00-059-087.png",
"216840111366964012373310883942009170084120009_00-097-074.png",
"216840111366964012819207061112010315104455352_04-024-184.png",
"216840111366964012819207061112010306085429121_04-020-102.png"]
"216840111366964012819207061112010306085429121_04-020-102.png",
"216840111366964012989926673512011083134050913_00-168-009.png", # broken PNG file (chunk b'\x00\x00\x00\x00')
"216840111366964012373310883942009152114636712_00-102-045.png", # "OSError: image file is truncated"
"216840111366964012819207061112010281134410801_00-129-131.png", # "OSError: image file is truncated"
"216840111366964012487858717522009280135853083_00-075-001.png", # "OSError: image file is truncated"
"216840111366964012989926673512011151082430686_00-157-045.png", # broken PNG file (chunk b'\x00\x00\x00\x00')
"216840111366964013686042548532013208193054515_02-026-007.png", # "OSError: image file is truncated"
"216840111366964013590140476722013058110301622_02-056-111.png", # "OSError: image file is truncated"
"216840111366964013590140476722013043111952381_02-065-198.png", # "OSError: image file is truncated"
"216840111366964013829543166512013353113303615_02-092-190.png", # "OSError: image file is truncated"
"216840111366964013962490064942014134093945580_01-178-104.png", # "OSError: image file is truncated"
]
self.csv = self.csv[~self.csv["ImageID"].isin(missing)]

if unique_patients:
Expand Down