瀏覽代碼

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
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 1 個檔案被更改,包括 1 行新增0 行删除
  1. +1
    -0
      utils/datasets.py

+ 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'])

Loading…
取消
儲存