fix bug: make CJ works #239

fix #239
pull/259/head
liaoxingyu 2020-08-25 11:31:49 +08:00
parent a2fe1f5271
commit f06c8b2ed9
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ def build_transforms(cfg, is_train=True):
res.extend([T.Pad(padding, padding_mode=padding_mode),
T.RandomCrop(size_train)])
if do_cj:
T.RandomApply([T.ColorJitter(cj_brightness, cj_contrast, cj_saturation, cj_hue)], p=cj_prob)
res.append(T.RandomApply([T.ColorJitter(cj_brightness, cj_contrast, cj_saturation, cj_hue)], p=cj_prob))
if do_augmix:
res.append(AugMix())
if do_rea: