Skip to content

Commit be8830f

Browse files
Merge pull request #13525 from tensorflow:LakshmiKalaKadali-patch-4
PiperOrigin-RevId: 733182458
2 parents 80c341f + 453f64d commit be8830f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

official/vision/ops/augment.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2697,8 +2697,8 @@ def distort(self, images: tf.Tensor,
26972697

26982698
@staticmethod
26992699
def _sample_from_beta(alpha, beta, shape):
2700-
sample_alpha = tf.random.gamma(shape, 1., beta=alpha)
2701-
sample_beta = tf.random.gamma(shape, 1., beta=beta)
2700+
sample_alpha = tf.random.gamma(shape, alpha, beta=1.0)
2701+
sample_beta = tf.random.gamma(shape, beta, beta=1.0)
27022702
return sample_alpha / (sample_alpha + sample_beta)
27032703

27042704
def _cutmix(self, images: tf.Tensor,

0 commit comments

Comments
 (0)