* 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
if self.augment: | if self.augment: | ||||
# Albumentations | # Albumentations | ||||
img, labels = self.albumentations(img, labels) | img, labels = self.albumentations(img, labels) | ||||
nl = len(labels) # update after albumentations | |||||
# HSV color-space | # HSV color-space | ||||
augment_hsv(img, hgain=hyp['hsv_h'], sgain=hyp['hsv_s'], vgain=hyp['hsv_v']) | augment_hsv(img, hgain=hyp['hsv_h'], sgain=hyp['hsv_s'], vgain=hyp['hsv_v']) |