Update augmentor.py
This commit is contained in:
parent
9df896bb70
commit
ba3c4f763c
@ -200,7 +200,7 @@ class SparseFlowAugmentor:
|
|||||||
# photometric augmentation params
|
# photometric augmentation params
|
||||||
self.photo_aug = Compose([ColorJitter(brightness=0.3, contrast=0.3, saturation=saturation_range, hue=0.3/3.14), AdjustGamma(*gamma)])
|
self.photo_aug = Compose([ColorJitter(brightness=0.3, contrast=0.3, saturation=saturation_range, hue=0.3/3.14), AdjustGamma(*gamma)])
|
||||||
self.asymmetric_color_aug_prob = 0.2
|
self.asymmetric_color_aug_prob = 0.2
|
||||||
self.eraser_aug_prob = 0.5
|
self.eraser_aug_prob = 1.0
|
||||||
|
|
||||||
def color_transform(self, img1, img2):
|
def color_transform(self, img1, img2):
|
||||||
image_stack = np.concatenate([img1, img2], axis=0)
|
image_stack = np.concatenate([img1, img2], axis=0)
|
||||||
|
Loading…
Reference in New Issue
Block a user