Upload streamlit_app.py
Browse files- src/streamlit_app.py +2 -2
src/streamlit_app.py
CHANGED
|
@@ -99,7 +99,7 @@ for i in range(0, len(related_regions), NUM_COLS):
|
|
| 99 |
with col:
|
| 100 |
# region view
|
| 101 |
region_p = os.path.join(DATA_BASE, f"{scene_name}/region_views/{region}.jpg")
|
| 102 |
-
st.image(region_p, use_container_width=
|
| 103 |
|
| 104 |
# objects
|
| 105 |
# object_ps = [
|
|
@@ -116,7 +116,7 @@ for i in range(0, len(related_regions), NUM_COLS):
|
|
| 116 |
for j, p in enumerate(object_ps):
|
| 117 |
oid = os.path.basename(p).split('_')[-1].split('.')[0]
|
| 118 |
with obj_cols[j % MAX_OBJ]:
|
| 119 |
-
st.image(p, use_container_width=
|
| 120 |
display_color = "red" if oid == obj_id else "black"
|
| 121 |
st.markdown(
|
| 122 |
f"<div style='color:{display_color};font-size:19px;font-weight:600;text-align:center;margin-top:-12px;'>Object_id: {oid}</div>", unsafe_allow_html=True)
|
|
|
|
| 99 |
with col:
|
| 100 |
# region view
|
| 101 |
region_p = os.path.join(DATA_BASE, f"{scene_name}/region_views/{region}.jpg")
|
| 102 |
+
st.image(region_p, use_container_width=False)
|
| 103 |
|
| 104 |
# objects
|
| 105 |
# object_ps = [
|
|
|
|
| 116 |
for j, p in enumerate(object_ps):
|
| 117 |
oid = os.path.basename(p).split('_')[-1].split('.')[0]
|
| 118 |
with obj_cols[j % MAX_OBJ]:
|
| 119 |
+
st.image(p, use_container_width=False)
|
| 120 |
display_color = "red" if oid == obj_id else "black"
|
| 121 |
st.markdown(
|
| 122 |
f"<div style='color:{display_color};font-size:19px;font-weight:600;text-align:center;margin-top:-12px;'>Object_id: {oid}</div>", unsafe_allow_html=True)
|