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

Update kidney-ct-abnormality.py

Browse files
Files changed (1) hide show
  1. kidney-ct-abnormality.py +6 -6
kidney-ct-abnormality.py CHANGED
@@ -103,12 +103,12 @@ class KidneyCTAbnormality(datasets.GeneratorBasedBuilder):
103
  img = sitk.ReadImage(img_path)
104
  img_array = sitk.GetArrayFromImage(img)
105
  img_array_c = img_array.astype('uint8')
106
- if img_array_c.shape[0]>h:
107
- h = img_array_c.shape[0]
108
- print(h)
109
- if img_array_c.shape[1]>w:
110
- w = img_array_c.shape[1]
111
- print(w)
112
  # img_array_cr = img_array_c.transpose(2, 0, 1)[..., np.newaxis]
113
  yield i, {
114
  "images": img_array_c,
 
103
  img = sitk.ReadImage(img_path)
104
  img_array = sitk.GetArrayFromImage(img)
105
  img_array_c = img_array.astype('uint8')
106
+ # if img_array_c.shape[0]>h:
107
+ # h = img_array_c.shape[0]
108
+ # print(h)
109
+ # if img_array_c.shape[1]>w:
110
+ # w = img_array_c.shape[1]
111
+ # print(w)
112
  # img_array_cr = img_array_c.transpose(2, 0, 1)[..., np.newaxis]
113
  yield i, {
114
  "images": img_array_c,