C-Achard commited on
Commit
a6ec387
Β·
verified Β·
1 Parent(s): 2e1b62d

Color keypoints by bodypart by default

Browse files

Unchecks 'Color keypoints by confidence?' by default, in the UI and in the cached examples, restoring the pre-#14 default rendering (viridis per bodypart, confidence as transparency). Confidence coloring is still available via the checkbox.

Files changed (1) hide show
  1. ui_utils.py +2 -2
ui_utils.py CHANGED
@@ -108,7 +108,7 @@ def gradio_inputs_for_MD_DLC(backends_list, md_models_list, dlc_models_list):
108
  )
109
 
110
  gr_color_by_confidence_checkbox = gr.Checkbox(
111
- value=True,
112
  label="Color keypoints by confidence? (otherwise by bodypart)",
113
  )
114
 
@@ -217,7 +217,7 @@ def gradio_description_and_examples():
217
 
218
  examples = [
219
  [image, "PyTorch", "md_v5a", "superanimal_quadruped", False, True, 0.5, 0.4, "amiko"]
220
- + [font_size, "#ff0000", marker_size, True, "viridis", "#ff0000"]
221
  for image in (
222
  "examples/dog.jpeg",
223
  "examples/cat.jpg",
 
108
  )
109
 
110
  gr_color_by_confidence_checkbox = gr.Checkbox(
111
+ value=False,
112
  label="Color keypoints by confidence? (otherwise by bodypart)",
113
  )
114
 
 
217
 
218
  examples = [
219
  [image, "PyTorch", "md_v5a", "superanimal_quadruped", False, True, 0.5, 0.4, "amiko"]
220
+ + [font_size, "#ff0000", marker_size, False, "viridis", "#ff0000"]
221
  for image in (
222
  "examples/dog.jpeg",
223
  "examples/cat.jpg",