Ruff Docstring formatting (#15793)
Signed-off-by: UltralyticsAssistant <web@ultralytics.com> Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
This commit is contained in:
parent
d27664216b
commit
776ca86369
60 changed files with 241 additions and 309 deletions
|
|
@ -1005,7 +1005,6 @@ class RandomPerspective:
|
|||
>>> transform = RandomPerspective(degrees=10.0, translate=0.1, scale=0.5, shear=5.0)
|
||||
>>> result = transform(labels) # Apply random perspective to labels
|
||||
"""
|
||||
|
||||
self.degrees = degrees
|
||||
self.translate = translate
|
||||
self.scale = scale
|
||||
|
|
@ -1038,7 +1037,6 @@ class RandomPerspective:
|
|||
>>> border = (10, 10)
|
||||
>>> transformed_img, matrix, scale = affine_transform(img, border)
|
||||
"""
|
||||
|
||||
# Center
|
||||
C = np.eye(3, dtype=np.float32)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue