xuannianz / keras-GaussianYOLOv3

Gaussian YOLOv3 (An Accurate and Fast Object Detector Using Localization Uncertainty for Autonomous Driving (ICCV, 2019)) implementation in Keras and Tensorflow

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

what is y_true_delta_xy?

lfydegithub opened this issue · comments

commented
# in loss.py
   y_true_delta_xy = raw_y_true[..., :2] * grid_shapes[l][::-1] - grid
# ----------------------------------------------------------------------
# in util_graph.py : def y_pred_graph:
    ...
    y_pred_delta_xy = K.sigmoid(raw_y_pred[..., :2])
    y_pred_log_wh = raw_y_pred[..., 2:4]
    y_pred_sigma = K.sigmoid(raw_y_pred[..., 4:8])

raw_y_true is in (0, 1) and grid is in (0, raw_y_pred_shape_wh), so y_true_delta_xy is not in (0, 1).
but y_pred_delta_xy was sigmoided, it must be in (0, 1).
that confuse me very much...
help, pls

commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.