Update albumentations (#9503)
* Add `RandomResizedCrop(ratio)` * Update ratio * Update ratio * Update ratio * Update ratio * Update ratio * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Create augmentations.py Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update augmentations.py Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
db6847431b
commit
6f0284763b
2 files changed
+16
-13
No files matched your search
@@ -404,7 +404,7 @@ class LoadImagesAndLabels(Dataset):
|
||||
self.mosaic_border = [-img_size // 2, -img_size // 2]
|
||||
self.stride = stride
|
||||
self.path = path
|
||||
self.albumentations = Albumentations() if augment else None
|
||||
self.albumentations = Albumentations(size=img_size) if augment else None
|
||||
|
||||
try:
|
||||
f = [] # image files
|
||||
|
||||
Reference in new issue
Block a user