Skip to content

Commit

Permalink
Update augmentations.py
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitabelooussovbtis committed Jun 21, 2022
1 parent a2a1ed2 commit e9309af
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions utils/augmentations.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ def __init__(self):
check_version(A.__version__, '1.0.3', hard=True) # version requirement

T = [
A.Blur(p=0.01),
A.MedianBlur(p=0.01),
A.ToGray(p=0.01),
A.CLAHE(p=0.01),
A.RandomBrightnessContrast(p=0.0),
A.RandomGamma(p=0.0),
A.ImageCompression(quality_lower=75, p=0.0)] # transforms
A.Blur(p=0.1),
A.MedianBlur(p=0.1),
A.ToGray(p=0.1),
A.CLAHE(p=0.1),
A.RandomBrightnessContrast(p=0.1),
A.RandomGamma(p=0.1),
A.ImageCompression(quality_lower=75, p=0.1)] # transforms
self.transform = A.Compose(T, bbox_params=A.BboxParams(format='yolo', label_fields=['class_labels']))

LOGGER.info(colorstr('albumentations: ') + ', '.join(f'{x}' for x in self.transform.transforms if x.p))
Expand Down

0 comments on commit e9309af

Please sign in to comment.