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) image = resize_image_to(image, target_image_size)
if exists(random_crop_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 # 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 # detailed https://kornia.readthedocs.io/en/latest/augmentation.module.html?highlight=randomcrop#kornia.augmentation.RandomCrop

View File

@@ -10,7 +10,7 @@ setup(
'dream = dalle2_pytorch.cli:dream' 'dream = dalle2_pytorch.cli:dream'
], ],
}, },
version = '0.0.97', version = '0.0.98',
license='MIT', license='MIT',
description = 'DALL-E 2', description = 'DALL-E 2',
author = 'Phil Wang', author = 'Phil Wang',