DiGuaQiu commited on
Commit
d2ae2ab
1 Parent(s): 861e1a5

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +1 -1
utils.py CHANGED
@@ -63,7 +63,7 @@ def run(tmpdirname):
63
  if st.session_state.option is not None:
64
  image = Path(__file__).parent / str(st.session_state.option)
65
 
66
- inference.infer([image], tmpdirname, [0], split_level=1)
67
  seg_name = add_postfix(image.name, "seg")
68
  preds_path = tmpdirname + "/" + seg_name
69
  st.session_state.preds_3D = read_image(preds_path)
 
63
  if st.session_state.option is not None:
64
  image = Path(__file__).parent / str(st.session_state.option)
65
 
66
+ inference.infer([image], tmpdirname, [0], split_level=2, cpu_only=True)
67
  seg_name = add_postfix(image.name, "seg")
68
  preds_path = tmpdirname + "/" + seg_name
69
  st.session_state.preds_3D = read_image(preds_path)