Browse Source

Update augmentations.py (#3948)

modifyDataloader
Glenn Jocher GitHub 3 years ago
parent
commit
a26e7de2bf
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      utils/augmentations.py

+ 1
- 1
utils/augmentations.py View File

@@ -25,7 +25,7 @@ class Albumentations:
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:

Loading…
Cancel
Save