Skip to content

Commit

Permalink
fix difference of high version albumentations
Browse files Browse the repository at this point in the history
  • Loading branch information
WongGawa committed Oct 18, 2024
1 parent 9812b01 commit 8a0b5ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mindyolo/data/albumentations.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def __call__(self, sample, p=1.0, **kwargs):

sample['img'] = new['image']
sample['bboxes'] = np.array(new['bboxes'])
sample['cls'] = np.array(new['class_labels'])
sample['cls'] = np.array(new['class_labels']).reshape(-1, 1)
sample['bbox_format'] = "xywhn"

return sample
Expand Down

0 comments on commit 8a0b5ef

Please sign in to comment.