Fix numpy FP64 bug in augmentation (#2841)

Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
single_channel
Laughing 2 years ago committed by GitHub
parent 527a97759b
commit ef1eff8830
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -683,7 +683,7 @@ class Albumentations:
if len(new['class_labels']) > 0: # skip update if no bbox in new im
labels['img'] = new['image']
labels['cls'] = np.array(new['class_labels'])
bboxes = np.array(new['bboxes'])
bboxes = np.array(new['bboxes'], dtype=np.float32)
labels['instances'].update(bboxes=bboxes)
return labels

Loading…
Cancel
Save