@@ -575,8 +575,8 @@ def __init__(
575
575
degrees : Union [numbers .Number , Sequence ],
576
576
interpolation : Union [InterpolationMode , int ] = InterpolationMode .NEAREST ,
577
577
expand : bool = False ,
578
- fill : Union [datapoints ._FillType , Dict [Type , datapoints ._FillType ]] = 0 ,
579
578
center : Optional [List [float ]] = None ,
579
+ fill : Union [datapoints ._FillType , Dict [Type , datapoints ._FillType ]] = 0 ,
580
580
) -> None :
581
581
super ().__init__ ()
582
582
self .degrees = _setup_angle (degrees , name = "degrees" , req_sizes = (2 ,))
@@ -903,9 +903,9 @@ class RandomPerspective(_RandomApplyTransform):
903
903
def __init__ (
904
904
self ,
905
905
distortion_scale : float = 0.5 ,
906
- fill : Union [datapoints ._FillType , Dict [Type , datapoints ._FillType ]] = 0 ,
907
- interpolation : Union [InterpolationMode , int ] = InterpolationMode .BILINEAR ,
908
906
p : float = 0.5 ,
907
+ interpolation : Union [InterpolationMode , int ] = InterpolationMode .BILINEAR ,
908
+ fill : Union [datapoints ._FillType , Dict [Type , datapoints ._FillType ]] = 0 ,
909
909
) -> None :
910
910
super ().__init__ (p = p )
911
911
@@ -966,8 +966,8 @@ def __init__(
966
966
self ,
967
967
alpha : Union [float , Sequence [float ]] = 50.0 ,
968
968
sigma : Union [float , Sequence [float ]] = 5.0 ,
969
- fill : Union [datapoints ._FillType , Dict [Type , datapoints ._FillType ]] = 0 ,
970
969
interpolation : Union [InterpolationMode , int ] = InterpolationMode .BILINEAR ,
970
+ fill : Union [datapoints ._FillType , Dict [Type , datapoints ._FillType ]] = 0 ,
971
971
) -> None :
972
972
super ().__init__ ()
973
973
self .alpha = _setup_float_or_seq (alpha , "alpha" , 2 )
0 commit comments