Unverified Commit 1d65e819 authored by Huu Quan, CAP's avatar Huu Quan, CAP Committed by GitHub
Browse files

Fix missing labels after albumentations (#4455)

* fix missing labels after augmentation

* Update datasets.py

Co-authored-by: default avatarHuu Quan <huuquan@HuuQuans-MacBook.local>
Co-authored-by: default avatarGlenn Jocher <glenn.jocher@ultralytics.com>
parent 6dd7dd8d
......@@ -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'])
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment