Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -131,20 +131,10 @@ with st.expander("Instructions for Use"):
|
|
131 |
|
132 |
st.write("##")
|
133 |
|
134 |
-
|
135 |
-
static_component = image_comparison(
|
136 |
-
img1=st.session_state["output_1"],
|
137 |
-
img2=st.session_state["output_2"],
|
138 |
-
label1="YOLOX",
|
139 |
-
label2="SAHI+YOLOX",
|
140 |
-
width=700,
|
141 |
-
starting_position=50,
|
142 |
-
show_labels=True,
|
143 |
-
make_responsive=True,
|
144 |
-
in_memory=True,
|
145 |
)
|
146 |
|
147 |
-
col1, col2
|
148 |
with col1:
|
149 |
st.markdown(f"##### Set input image:")
|
150 |
|
@@ -177,6 +167,18 @@ with col1:
|
|
177 |
image = sahi.utils.cv.read_image_as_pil(IMAGE_TO_URL[slider])
|
178 |
st.image(image, width=300)
|
179 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
180 |
|
181 |
|
182 |
col1, col2, col3 = st.columns([4, 3, 4])
|
|
|
131 |
|
132 |
st.write("##")
|
133 |
|
134 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
135 |
)
|
136 |
|
137 |
+
col1, col2 = st.columns([3,6])
|
138 |
with col1:
|
139 |
st.markdown(f"##### Set input image:")
|
140 |
|
|
|
167 |
image = sahi.utils.cv.read_image_as_pil(IMAGE_TO_URL[slider])
|
168 |
st.image(image, width=300)
|
169 |
|
170 |
+
with col2:
|
171 |
+
st.markdown(f"##### YOLOX Standard vs SAHI Prediction:")
|
172 |
+
static_component = image_comparison(
|
173 |
+
img1=st.session_state["output_1"],
|
174 |
+
img2=st.session_state["output_2"],
|
175 |
+
label1="YOLOX",
|
176 |
+
label2="SAHI+YOLOX",
|
177 |
+
width=700,
|
178 |
+
starting_position=50,
|
179 |
+
show_labels=True,
|
180 |
+
make_responsive=True,
|
181 |
+
in_memory=True,
|
182 |
|
183 |
|
184 |
col1, col2, col3 = st.columns([4, 3, 4])
|