Return correctly formatted ratio_pad in RTDETRDataset (#22525)
Co-authored-by: UltralyticsAssistant <web@ultralytics.com> Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
82d3b50996
commit
c833939b4e
@ -89,7 +89,7 @@ class RTDETRDataset(YOLODataset):
|
||||
transforms = v8_transforms(self, self.imgsz, hyp, stretch=True)
|
||||
else:
|
||||
# transforms = Compose([LetterBox(new_shape=(self.imgsz, self.imgsz), auto=False, scale_fill=True)])
|
||||
transforms = Compose([])
|
||||
transforms = Compose([lambda x: {**x, **{"ratio_pad": [x["ratio_pad"], [0, 0]]}}])
|
||||
transforms.append(
|
||||
Format(
|
||||
bbox_format="xywh",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user