Skip to content

Commit

Permalink
fix categorical_crossentropy normalizer
Browse files Browse the repository at this point in the history
  • Loading branch information
Ely-S committed Jun 15, 2020
1 parent 71945ab commit 06a8a74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion efficientdet/det_model_fn.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def focal_loss(y_pred, y_true, alpha, gamma, label_smoothing, normalizer):

# Get the cross_entropy for each entry
ce = tf.keras.losses.categorical_crossentropy(
y_true, y_pred, from_logints=True, label_smoothing=label_smoothing)
y_true, y_pred, from_logits=True, label_smoothing=label_smoothing)

pred_prob = tf.sigmoid(y_pred)

Expand Down

0 comments on commit 06a8a74

Please sign in to comment.