File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -125,6 +125,7 @@ def _populate_metadata(
125
125
"label" : dict (zip (header .bodyparts , label_colors )),
126
126
"id" : dict (zip (header .individuals , id_colors )),
127
127
}
128
+ face_color_prop = "id" if ids [0 ] else "label"
128
129
return {
129
130
"name" : "keypoints" ,
130
131
"text" : "{id}–{label}" if ids [0 ] else "label" ,
@@ -134,8 +135,8 @@ def _populate_metadata(
134
135
"likelihood" : likelihood ,
135
136
"valid" : likelihood > pcutoff ,
136
137
},
137
- "face_color_cycle" : label_colors ,
138
- "face_color" : "id" if ids [ 0 ] else "label" ,
138
+ "face_color_cycle" : face_color_cycle_maps [ face_color_prop ] ,
139
+ "face_color" : face_color_prop ,
139
140
"face_colormap" : colormap ,
140
141
"edge_color" : "valid" ,
141
142
"edge_color_cycle" : ["black" , "red" ],
You can’t perform that action at this time.
0 commit comments