Преглед на файлове
Fix missing labels after albumentations (#4455)
* fix missing labels after augmentation
* Update datasets.py
Cleanup
Co-authored-by: Huu Quan <huuquan@HuuQuans-MacBook.local>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
modifyDataloader
Huu Quan, CAP
GitHub
преди 3 години
родител
ревизия
1d65e8194d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
променени са
1 файла, в които са
добавени 1 реда и са
изтрити 0 реда
-
utils/datasets.py
|
|
@@ -568,6 +568,7 @@ class LoadImagesAndLabels(Dataset): # for training/testing |
|
|
|
if self.augment: |
|
|
|
# Albumentations |
|
|
|
img, labels = self.albumentations(img, labels) |
|
|
|
nl = len(labels) # update after albumentations |
|
|
|
|
|
|
|
# HSV color-space |
|
|
|
augment_hsv(img, hgain=hyp['hsv_h'], sgain=hyp['hsv_s'], vgain=hyp['hsv_v']) |