mirror of https://github.com/JDAI-CV/fast-reid.git
parent
a2fe1f5271
commit
f06c8b2ed9
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue