fix random crop probability

This commit is contained in:
Phil Wang
2022-05-04 11:52:24 -07:00
parent 97b751209f
commit 86e692d24f
2 changed files with 2 additions and 2 deletions

View File

@@ -1808,7 +1808,7 @@ class Decoder(BaseGaussianDiffusion):
image = resize_image_to(image, target_image_size)
if exists(random_crop_size):
aug = K.RandomCrop((random_crop_size, random_crop_size))
aug = K.RandomCrop((random_crop_size, random_crop_size), p = 1.)
# make sure low res conditioner and image both get augmented the same way
# detailed https://kornia.readthedocs.io/en/latest/augmentation.module.html?highlight=randomcrop#kornia.augmentation.RandomCrop