浏览代码

Update augmentations.py (#3948)

modifyDataloader
Glenn Jocher GitHub 3 年前
父节点
当前提交
a26e7de2bf
找不到此签名对应的密钥 GPG 密钥 ID: 4AEE18F83AFDEB23
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      utils/augmentations.py

+ 1
- 1
utils/augmentations.py 查看文件

@@ -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:

正在加载...
取消
保存