Skip to content

Commit 453f64d

Browse files
Update augment.py
1 parent bdbcbaa commit 453f64d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: official/vision/ops/augment.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2698,7 +2698,7 @@ def distort(self, images: tf.Tensor,
26982698
@staticmethod
26992699
def _sample_from_beta(alpha, beta, shape):
27002700
sample_alpha = tf.random.gamma(shape, alpha, beta=1.0)
2701-
sample_beta = 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)