shashichilappagari commited on
Commit
92cfad7
1 Parent(s): 52321f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -27,8 +27,7 @@ with st.form("model_form"):
27
  model=zoo.load_model(model_name)
28
  model.overlay_font_scale=3
29
  model.overlay_line_width=6
30
- model.image_backend='pil'
31
- model.measure_time=True
32
  if model.output_postprocess_type=='PoseDetection':
33
  model.overlay_show_labels=False
34
  st.write("Model loaded successfully")
@@ -39,5 +38,7 @@ with st.form("model_form"):
39
  st.write(predictions.results)
40
  else:
41
  st.image(predictions.image_overlay,caption='Image with Bounding Boxes/Keypoints')
 
 
42
  stats=model.time_stats()
43
  st.write('Expected Frames per second for the model= ', 1000.0/stats["CoreInferenceDuration_ms"].avg)
 
27
  model=zoo.load_model(model_name)
28
  model.overlay_font_scale=3
29
  model.overlay_line_width=6
30
+ model.image_backend='pil'
 
31
  if model.output_postprocess_type=='PoseDetection':
32
  model.overlay_show_labels=False
33
  st.write("Model loaded successfully")
 
38
  st.write(predictions.results)
39
  else:
40
  st.image(predictions.image_overlay,caption='Image with Bounding Boxes/Keypoints')
41
+ model.measure_time=True
42
+ predictions=model(image)
43
  stats=model.time_stats()
44
  st.write('Expected Frames per second for the model= ', 1000.0/stats["CoreInferenceDuration_ms"].avg)