Euniceyeee commited on
Commit
43e8394
1 Parent(s): b3356b8

Update kidney-ct-abnormality.py

Browse files
Files changed (1) hide show
  1. kidney-ct-abnormality.py +2 -0
kidney-ct-abnormality.py CHANGED
@@ -51,6 +51,7 @@ class KidneyCTAbnormality(datasets.GeneratorBasedBuilder):
51
  {
52
  "images": datasets.Sequence(datasets.Image()),
53
  # "img_f64_array": datasets.Array3D(dtype = 'float64'),
 
54
  "label": datasets.ClassLabel(num_classes=2, names=LABELS),
55
  }
56
  ),
@@ -112,5 +113,6 @@ class KidneyCTAbnormality(datasets.GeneratorBasedBuilder):
112
  yield i, {
113
  "images": img_array_c,
114
  # "img_f64_array": img_array,
 
115
  "label": meta["abnormality"],
116
  }
 
51
  {
52
  "images": datasets.Sequence(datasets.Image()),
53
  # "img_f64_array": datasets.Array3D(dtype = 'float64'),
54
+ "img_path": datasets.Value(dtype = 'string'),
55
  "label": datasets.ClassLabel(num_classes=2, names=LABELS),
56
  }
57
  ),
 
113
  yield i, {
114
  "images": img_array_c,
115
  # "img_f64_array": img_array,
116
+ "img_path": img_path,
117
  "label": meta["abnormality"],
118
  }