Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -110,16 +110,7 @@ st.markdown(
|
|
110 |
""",
|
111 |
unsafe_allow_html=True,
|
112 |
)
|
113 |
-
|
114 |
-
"""
|
115 |
-
<p style='text-align: center'>
|
116 |
-
<a href='https://github.com/obss/sahi' target='_blank'>SAHI Github</a> | <a href='https://github.com/open-mmlab/mmdetection/tree/master/configs/yolox' target='_blank'>YOLOX Github</a> | <a href='https://huggingface.co/spaces/fcakyon/sahi-yolov5' target='_blank'>SAHI+YOLOv5 Demo</a>
|
117 |
-
<br />
|
118 |
-
Follow me for more! <a href='https://twitter.com/fcakyon' target='_blank'> <img src="https://img.icons8.com/color/48/000000/twitter--v1.png" height="30"></a><a href='https://github.com/fcakyon' target='_blank'><img src="https://img.icons8.com/fluency/48/000000/github.png" height="27"></a><a href='https://www.linkedin.com/in/fcakyon/' target='_blank'><img src="https://img.icons8.com/fluency/48/000000/linkedin.png" height="30"></a> <a href='https://fcakyon.medium.com/' target='_blank'><img src="https://img.icons8.com/ios-filled/48/000000/medium-monogram.png" height="26"></a>
|
119 |
-
</p>
|
120 |
-
""",
|
121 |
-
unsafe_allow_html=True,
|
122 |
-
)
|
123 |
|
124 |
st.write("##")
|
125 |
|
@@ -141,6 +132,19 @@ with st.expander("Usage"):
|
|
141 |
|
142 |
st.write("##")
|
143 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
144 |
col1, col2, col3 = st.columns([6, 1, 6])
|
145 |
with col1:
|
146 |
st.markdown(f"##### Set input image:")
|
@@ -226,23 +230,5 @@ if submit:
|
|
226 |
st.session_state["output_1"] = output_1
|
227 |
st.session_state["output_2"] = output_2
|
228 |
|
229 |
-
|
230 |
-
|
231 |
-
img1=st.session_state["output_1"],
|
232 |
-
img2=st.session_state["output_2"],
|
233 |
-
label1="YOLOX",
|
234 |
-
label2="SAHI+YOLOX",
|
235 |
-
width=700,
|
236 |
-
starting_position=50,
|
237 |
-
show_labels=True,
|
238 |
-
make_responsive=True,
|
239 |
-
in_memory=True,
|
240 |
-
)
|
241 |
-
st.markdown(
|
242 |
-
"""
|
243 |
-
<p style='text-align: center'>
|
244 |
-
prepared with <a href='https://github.com/fcakyon/streamlit-image-comparison' target='_blank'>streamlit-image-comparison</a>
|
245 |
-
</p>
|
246 |
-
""",
|
247 |
-
unsafe_allow_html=True,
|
248 |
-
)
|
|
|
110 |
""",
|
111 |
unsafe_allow_html=True,
|
112 |
)
|
113 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
114 |
|
115 |
st.write("##")
|
116 |
|
|
|
132 |
|
133 |
st.write("##")
|
134 |
|
135 |
+
st.markdown(f"##### YOLOX Standard vs SAHI Prediction:")
|
136 |
+
static_component = image_comparison(
|
137 |
+
img1=st.session_state["output_1"],
|
138 |
+
img2=st.session_state["output_2"],
|
139 |
+
label1="YOLOX",
|
140 |
+
label2="SAHI+YOLOX",
|
141 |
+
width=700,
|
142 |
+
starting_position=50,
|
143 |
+
show_labels=True,
|
144 |
+
make_responsive=True,
|
145 |
+
in_memory=True,
|
146 |
+
)
|
147 |
+
|
148 |
col1, col2, col3 = st.columns([6, 1, 6])
|
149 |
with col1:
|
150 |
st.markdown(f"##### Set input image:")
|
|
|
230 |
st.session_state["output_1"] = output_1
|
231 |
st.session_state["output_2"] = output_2
|
232 |
|
233 |
+
|
234 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|