ziq commited on
Commit
693682c
·
1 Parent(s): 7dc8928

Update RSNA-ATD2023.py

Browse files
Files changed (1) hide show
  1. RSNA-ATD2023.py +4 -4
RSNA-ATD2023.py CHANGED
@@ -68,11 +68,11 @@ class RSNAATD(datasets.GeneratorBasedBuilder):
68
  zip(images, masks)
69
  ):
70
  row = df.loc[df["path"] == image_path.lower()]
71
- print(row)
72
  yield idx, {
73
- "patient_id": row["patient_id"],
74
- "series_id": row["series_id"],
75
- "frame_id": row["frame_id"],
76
  "image": {"path": image_path, "bytes": image.read()},
77
  "mask": {"path": mask_path, "bytes": mask.read()},
78
  }
 
68
  zip(images, masks)
69
  ):
70
  row = df.loc[df["path"] == image_path.lower()]
71
+
72
  yield idx, {
73
+ "patient_id": row["patient_id"].values[0],
74
+ "series_id": row["series_id"].values[0],
75
+ "frame_id": row["frame_id"].values[0],
76
  "image": {"path": image_path, "bytes": image.read()},
77
  "mask": {"path": mask_path, "bytes": mask.read()},
78
  }