mirror of
https://github.com/lucidrains/DALLE2-pytorch.git
synced 2025-12-19 17:54:20 +01:00
fix random crop probability
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user