Skip to content

Commit

Permalink
Update augmentations.py (ultralytics#3948)
Browse files Browse the repository at this point in the history
  • Loading branch information
glenn-jocher authored Jul 9, 2021
1 parent a48064b commit 356b4a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/augmentations.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def __init__(self):
A.ToGray(p=0.01)],
bbox_params=A.BboxParams(format='yolo', label_fields=['class_labels']))

logging.info(colorstr('albumentations: ') + ', '.join(f'{x}' for x in self.transform.transforms))
logging.info(colorstr('albumentations: ') + ', '.join(f'{x}' for x in self.transform.transforms if x.p))
except ImportError: # package not installed, skip
pass
except Exception as e:
Expand Down

0 comments on commit 356b4a1

Please sign in to comment.