Commit
·
7acb21a
1
Parent(s):
0a73c84
Update app.py
Browse files
app.py
CHANGED
@@ -21,6 +21,7 @@ with st.form("model_form"):
|
|
21 |
model.overlay_font_scale=3
|
22 |
model.overlay_line_width=6
|
23 |
model.image_backend='pil'
|
|
|
24 |
if model.output_postprocess_type=='PoseDetection':
|
25 |
model.overlay_show_labels=False
|
26 |
st.write("Model loaded successfully")
|
@@ -30,4 +31,5 @@ with st.form("model_form"):
|
|
30 |
st.image(predictions.image,caption='Original Image')
|
31 |
st.write(predictions.results)
|
32 |
else:
|
33 |
-
st.image(predictions.image_overlay,caption='Image with Bounding Boxes/Keypoints')
|
|
|
|
21 |
model.overlay_font_scale=3
|
22 |
model.overlay_line_width=6
|
23 |
model.image_backend='pil'
|
24 |
+
model.measure_time=True
|
25 |
if model.output_postprocess_type=='PoseDetection':
|
26 |
model.overlay_show_labels=False
|
27 |
st.write("Model loaded successfully")
|
|
|
31 |
st.image(predictions.image,caption='Original Image')
|
32 |
st.write(predictions.results)
|
33 |
else:
|
34 |
+
st.image(predictions.image_overlay,caption='Image with Bounding Boxes/Keypoints')
|
35 |
+
st.write(model.time_stats())
|