Skip to content

Commit 9cd074a

Browse files
likaixin2000ZwwWayne
authored andcommitted
[Doc]: Fix mistakes in formula (#8607)
1 parent ce948b4 commit 9cd074a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mmdet/models/utils/gaussian_target.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def gaussian_radius(det_size, min_overlap):
104104
.. math::
105105
\cfrac{(w-r)*(h-r)}{w*h+(w+h)r-r^2} \ge {iou} \quad\Rightarrow\quad
106106
{r^2-(w+h)r+\cfrac{1-iou}{1+iou}*w*h} \ge 0 \\
107-
{a} = 1,\quad{b} = {-(w+h)},\quad{c} = {\cfrac{1-iou}{1+iou}*w*h}
107+
{a} = 1,\quad{b} = {-(w+h)},\quad{c} = {\cfrac{1-iou}{1+iou}*w*h} \\
108108
{r} \le \cfrac{-b-\sqrt{b^2-4*a*c}}{2*a}
109109
110110
- Case2: both two corners are inside the gt box.
@@ -128,7 +128,7 @@ def gaussian_radius(det_size, min_overlap):
128128
.. math::
129129
\cfrac{(w-2*r)*(h-2*r)}{w*h} \ge {iou} \quad\Rightarrow\quad
130130
{4r^2-2(w+h)r+(1-iou)*w*h} \ge 0 \\
131-
{a} = 4,\quad {b} = {-2(w+h)},\quad {c} = {(1-iou)*w*h}
131+
{a} = 4,\quad {b} = {-2(w+h)},\quad {c} = {(1-iou)*w*h} \\
132132
{r} \le \cfrac{-b-\sqrt{b^2-4*a*c}}{2*a}
133133
134134
- Case3: both two corners are outside the gt box.

0 commit comments

Comments
 (0)