here's the equation  Let's let `Lreg` as `u` and `|-log(IoU)|` as `I`  @yangxue0827 I know there must be something wrong. So could you pleast tell the right wat to calculate the gradient?