Spaces:
Sleeping
Sleeping
Commit
•
2e8ee2d
1
Parent(s):
42ad4b8
Update libs/pose_viz.py
Browse files- libs/pose_viz.py +2 -0
libs/pose_viz.py
CHANGED
@@ -38,6 +38,8 @@ def add_pose_display_meta(image,
|
|
38 |
ratio = image.shape[1]/1280
|
39 |
RADIUS = int(5*ratio)
|
40 |
THICKNESS = int(4*ratio)
|
|
|
|
|
41 |
for bbox, kpt in zip(bboxes, kpts):
|
42 |
|
43 |
# format kpt
|
|
|
38 |
ratio = image.shape[1]/1280
|
39 |
RADIUS = int(5*ratio)
|
40 |
THICKNESS = int(4*ratio)
|
41 |
+
if THICKNESS < 1:
|
42 |
+
THICKNESS = 1
|
43 |
for bbox, kpt in zip(bboxes, kpts):
|
44 |
|
45 |
# format kpt
|