Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RandomGaussianBlur crashes when factor=0 (keras-team#1968)
* RandomGaussianBlur crashes when factor=0 ```>>> import keras_cv Using TensorFlow backend >>> blurrer = keras_cv.layers.RandomGaussianBlur(3, 0.) >>> blurrer.get_random_transformation() (<tf.Tensor: shape=(3, 1, 1, 1), dtype=float32, numpy= array([[[[nan]]], [[[nan]]], [[[nan]]]], dtype=float32)>, <tf.Tensor: shape=(1, 3, 1, 1), dtype=float32, numpy= array([[[[nan]], [[nan]], [[nan]]]], dtype=float32)>) ``` * Make sure `factor` cannot become too small * Use keras.backend.epsilon() instead of 0.01 * Update random_gaussian_blur.py
- Loading branch information