Spaces:
Build error
Build error
fix to toggling labels
Browse files
app.py
CHANGED
@@ -89,8 +89,8 @@ inputs = [gr_image_input,
|
|
89 |
def draw_keypoints_on_image(image,
|
90 |
keypoints,
|
91 |
map_label_id_to_str,
|
92 |
-
use_normalized_coordinates=True,
|
93 |
flag_show_str_labels,
|
|
|
94 |
gr_pose_font_input='amiko',
|
95 |
gr_slider_font_size=8,
|
96 |
gr_keypt_color="#ff0000",
|
@@ -285,8 +285,8 @@ def predict_pipeline(img_input,
|
|
285 |
draw_keypoints_on_image(img_input,
|
286 |
list_kpts_per_crop[0], # a numpy array with shape [num_keypoints, 2].
|
287 |
map_label_id_to_str,
|
288 |
-
use_normalized_coordinates=False,
|
289 |
flag_show_str_labels,
|
|
|
290 |
gr_pose_font_input=gr_pose_font_input,
|
291 |
gr_slider_font_size=gr_slider_font_size,
|
292 |
gr_keypt_color=gr_keypt_color,
|
@@ -311,8 +311,8 @@ def predict_pipeline(img_input,
|
|
311 |
draw_keypoints_on_image(img_crop,
|
312 |
kpts_crop, # a numpy array with shape [num_keypoints, 2].
|
313 |
map_label_id_to_str,
|
314 |
-
use_normalized_coordinates=False, # if True, then I should use md_results.xyxyn
|
315 |
flag_show_str_labels,
|
|
|
316 |
gr_pose_font_input=gr_pose_font_input,
|
317 |
gr_slider_font_size=gr_slider_font_size,
|
318 |
gr_keypt_color=gr_keypt_color,
|
|
|
89 |
def draw_keypoints_on_image(image,
|
90 |
keypoints,
|
91 |
map_label_id_to_str,
|
|
|
92 |
flag_show_str_labels,
|
93 |
+
use_normalized_coordinates=True,
|
94 |
gr_pose_font_input='amiko',
|
95 |
gr_slider_font_size=8,
|
96 |
gr_keypt_color="#ff0000",
|
|
|
285 |
draw_keypoints_on_image(img_input,
|
286 |
list_kpts_per_crop[0], # a numpy array with shape [num_keypoints, 2].
|
287 |
map_label_id_to_str,
|
|
|
288 |
flag_show_str_labels,
|
289 |
+
use_normalized_coordinates=False,
|
290 |
gr_pose_font_input=gr_pose_font_input,
|
291 |
gr_slider_font_size=gr_slider_font_size,
|
292 |
gr_keypt_color=gr_keypt_color,
|
|
|
311 |
draw_keypoints_on_image(img_crop,
|
312 |
kpts_crop, # a numpy array with shape [num_keypoints, 2].
|
313 |
map_label_id_to_str,
|
|
|
314 |
flag_show_str_labels,
|
315 |
+
use_normalized_coordinates=False, # if True, then I should use md_results.xyxyn
|
316 |
gr_pose_font_input=gr_pose_font_input,
|
317 |
gr_slider_font_size=gr_slider_font_size,
|
318 |
gr_keypt_color=gr_keypt_color,
|