pamixsun commited on
Commit
a21a9d8
1 Parent(s): a504466

Update glaucoma.py

Browse files
Files changed (1) hide show
  1. glaucoma.py +1 -1
glaucoma.py CHANGED
@@ -85,7 +85,7 @@ class GlaucomaModel(object):
85
  try:
86
  vcdr = simple_vcdr(disc_cup)
87
  except:
88
- vcdr = '[None]'
89
  _, disc_cup_image = add_mask(image, disc_cup, [0, 1, 2], [[0, 0, 0], [0, 255, 0], [255, 0, 0]], 0.2)
90
 
91
  return disease_idx, disc_cup_image, cam, vcdr
 
85
  try:
86
  vcdr = simple_vcdr(disc_cup)
87
  except:
88
+ vcdr = np.nan
89
  _, disc_cup_image = add_mask(image, disc_cup, [0, 1, 2], [[0, 0, 0], [0, 255, 0], [255, 0, 0]], 0.2)
90
 
91
  return disease_idx, disc_cup_image, cam, vcdr