Datasets:
Tasks:
Image Segmentation
Modalities:
Image
Sub-tasks:
semantic-segmentation
Languages:
English
Size:
10K - 100K
License:
Update RSNA-ATD2023.py
Browse files- 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 |
-
|
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 |
}
|