mirror of
https://github.com/THU-MIG/yolov10.git
synced 2025-05-23 21:44:22 +08:00
[RTDETR]fix mosaic<1.0 (#3518)
This commit is contained in:
parent
31b46bf2b4
commit
8c0a7440df
@ -427,7 +427,7 @@ class RandomPerspective:
|
|||||||
"""
|
"""
|
||||||
if self.pre_transform and 'mosaic_border' not in labels:
|
if self.pre_transform and 'mosaic_border' not in labels:
|
||||||
labels = self.pre_transform(labels)
|
labels = self.pre_transform(labels)
|
||||||
labels.pop('ratio_pad') # do not need ratio pad
|
labels.pop('ratio_pad', None) # do not need ratio pad
|
||||||
|
|
||||||
img = labels['img']
|
img = labels['img']
|
||||||
cls = labels['cls']
|
cls = labels['cls']
|
||||||
|
Loading…
x
Reference in New Issue
Block a user