ianpan commited on
Commit
c0cba08
·
1 Parent(s): d45106e

Add example

Browse files
app.py CHANGED
@@ -78,7 +78,7 @@ def generate_segmentation_video(study):
78
  # shape = (8, Z, H, W)
79
  p_spine = seg_output[:7].sum(0)
80
  # shape = (Z, H, W)
81
- seg_output = np.argmax(seg_output, axis=0) + 1
82
  # shape = (Z, H, W)
83
  seg_output[p_spine < 0.5] = 0
84
  seg_output = (seg_output * 255 / 7).astype("uint8")
 
78
  # shape = (8, Z, H, W)
79
  p_spine = seg_output[:7].sum(0)
80
  # shape = (Z, H, W)
81
+ seg_output = np.argmax(seg_output[:7], axis=0) + 1
82
  # shape = (Z, H, W)
83
  seg_output[p_spine < 0.5] = 0
84
  seg_output = (seg_output * 255 / 7).astype("uint8")
examples/1.2.826.0.1.3680043.26052.nii.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:12f0573461fdae539fa317da6ad562079f1ceee7e2fbd95c11f8021143f5c805
3
+ size 112454329