Skip to content

Commit

Permalink
cast fix keras-team#4
Browse files Browse the repository at this point in the history
  • Loading branch information
quantumalaviya committed Mar 27, 2023
1 parent 09577e3 commit e92ac03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keras_cv/models/object_detection/yolox/yolox.py
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ def loop_across_batch_2(b, matching_matrix):
)

fg_mask_inboxes = tf.reduce_sum(matching_matrix, 0) > 0.0
num_fg = tf.reduce_sum(fg_mask_inboxes)
num_fg = tf.reduce_sum(tf.cast(fg_mask_inboxes, tf.float32))

fg_mask_indices = tf.reshape(tf.where(fg_mask), [-1])
fg_mask_inboxes_indices = tf.reshape(tf.where(fg_mask_inboxes), [-1, 1])
Expand Down

0 comments on commit e92ac03

Please sign in to comment.