Skip to content

Commit

Permalink
updated comment
Browse files Browse the repository at this point in the history
  • Loading branch information
quantumalaviya authored Mar 25, 2022
1 parent 3036c50 commit ce9bf04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions keras_cv/layers/preprocessing/equalization.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ def equalize_channel(self, image, channel_index):
histogram = tf.histogram_fixed_width(image, [0, 255], nbins=self.bins)

# For the purposes of computing the step, filter out the nonzeros.
# Zeroes are replaced by 1410065408 while calculating min to keep shape
# constant across input sizes for compatibility with vectorized_map
# Zeroes are replaced by 1410065408 (overflow int) while calculating min to
# keep shape constant across input sizes for compatibility with vectorized_map
histogram_without_zeroes = tf.where(
tf.equal(histogram, 0),
tf.multiply(tf.ones((), tf.int32), 1410065408),
Expand Down

0 comments on commit ce9bf04

Please sign in to comment.