Chris Oswald commited on
Commit
cbcc262
·
1 Parent(s): b45106a
Files changed (1) hide show
  1. SPIDER.py +2 -1
SPIDER.py CHANGED
@@ -503,7 +503,8 @@ class SPIDER(datasets.GeneratorBasedBuilder):
503
  # Convert .mha mask to original size numeric array
504
  mask_array_original = sitk.GetArrayFromImage(mask)
505
 
506
- # Convert to Uint8 (range is [0,225], so all values should fit in Uint8)
 
507
  mask_array_standardized = np.array(mask_array_original, dtype='uint8')
508
 
509
  # Convert .mha mask to standardized numeric array
 
503
  # Convert .mha mask to original size numeric array
504
  mask_array_original = sitk.GetArrayFromImage(mask)
505
 
506
+ # Convert to Uint8 (existing range is [0,225],
507
+ # so all values should fit in Uint8)
508
  mask_array_standardized = np.array(mask_array_original, dtype='uint8')
509
 
510
  # Convert .mha mask to standardized numeric array