Spaces:
Running
Running
fcakyon
commited on
Commit
·
864cb02
1
Parent(s):
c30a8ce
add debug prints
Browse files
app.py
CHANGED
@@ -216,7 +216,7 @@ if submit:
|
|
216 |
)
|
217 |
|
218 |
st.markdown(f"##### YOLOX Standard vs SAHI Prediction:")
|
219 |
-
imagecompare(
|
220 |
output_1,
|
221 |
output_2,
|
222 |
label1="YOLOX",
|
@@ -226,3 +226,6 @@ if submit:
|
|
226 |
show_labels=True,
|
227 |
make_responsive=True,
|
228 |
)
|
|
|
|
|
|
|
|
216 |
)
|
217 |
|
218 |
st.markdown(f"##### YOLOX Standard vs SAHI Prediction:")
|
219 |
+
static_component, image_1_path, image_2_path = imagecompare(
|
220 |
output_1,
|
221 |
output_2,
|
222 |
label1="YOLOX",
|
|
|
226 |
show_labels=True,
|
227 |
make_responsive=True,
|
228 |
)
|
229 |
+
st.write(image_1_path)
|
230 |
+
st.write(pathlib.Path(image_1_path).exists())
|
231 |
+
st.image(Image.open(image_1_path))
|
utils.py
CHANGED
@@ -145,4 +145,4 @@ def imagecompare(
|
|
145 |
"""
|
146 |
static_component = components.html(htmlcode, height=height, width=width)
|
147 |
|
148 |
-
return static_component
|
|
|
145 |
"""
|
146 |
static_component = components.html(htmlcode, height=height, width=width)
|
147 |
|
148 |
+
return static_component, image_1_path, image_2_path
|