Spaces:
Running
Running
Update utils.py
Browse files
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=
|
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)
|