Skip to content

Commit 8c767cf

Browse files
committed
update documentation in keypoint boxcoder.
1 parent edcd29f commit 8c767cf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

research/object_detection/box_coders/keypoint_box_coder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
th = log(h / ha)
2424
tw = log(w / wa)
2525
tky0 = (ky0 - ya) / ha
26-
tkx0 = (kx0 - xa) / ha
26+
tkx0 = (kx0 - xa) / wa
2727
tky1 = (ky1 - ya) / ha
28-
tkx1 = (kx1 - xa) / ha
28+
tkx1 = (kx1 - xa) / wa
2929
...
3030
where x, y, w, h denote the box's center coordinates, width and height
3131
respectively. Similarly, xa, ya, wa, ha denote the anchor's center

0 commit comments

Comments
 (0)