Spaces:
Sleeping
Sleeping
Commit
·
fd54515
1
Parent(s):
ca09978
Fix initialized depth
Browse files
streamlit_apps/app_utils/image_inference.py
CHANGED
@@ -8,9 +8,6 @@ from .base_model import BaseRGBDModel
|
|
8 |
from .depth_model import BaseDepthModel
|
9 |
from .model import base_inference
|
10 |
|
11 |
-
if "depth" not in st.session_state:
|
12 |
-
st.session_state.depth = None
|
13 |
-
|
14 |
|
15 |
def image_inference(
|
16 |
depth_model: BaseDepthModel,
|
@@ -18,6 +15,9 @@ def image_inference(
|
|
18 |
da: BaseDataAugmentation,
|
19 |
color: np.ndarray,
|
20 |
) -> None:
|
|
|
|
|
|
|
21 |
col1, col2 = st.columns(2)
|
22 |
image: Image = None
|
23 |
# depth: Image = None
|
|
|
8 |
from .depth_model import BaseDepthModel
|
9 |
from .model import base_inference
|
10 |
|
|
|
|
|
|
|
11 |
|
12 |
def image_inference(
|
13 |
depth_model: BaseDepthModel,
|
|
|
15 |
da: BaseDataAugmentation,
|
16 |
color: np.ndarray,
|
17 |
) -> None:
|
18 |
+
if "depth" not in st.session_state:
|
19 |
+
st.session_state.depth = None
|
20 |
+
|
21 |
col1, col2 = st.columns(2)
|
22 |
image: Image = None
|
23 |
# depth: Image = None
|