![]() ![]() constant: pads with a constant value, this value is specified with fill.Should be: constant, edge, reflect or symmetric. Only int or str or tuple value is supported for PIL Image. Only number is supported for torch Tensor. This value is only used when the padding_mode is constant. Length 3, it is used to fill R, G, B channels respectively. fill ( number or str or tuple) – Pixel fill value for constant fill.In torchscript mode padding as single int is not supported, use a sequence of length 1. This is the padding for the left, top, right and bottom borders respectively. On left/right and top/bottom respectively. If sequence of length 2 is provided this is the padding padding ( int or sequence) – Padding on each border. ![]() To have shape, where … means at most 2 leading dimensions for mode reflect and symmetric,Īt most 3 leading dimensions for mode edge,Īnd an arbitrary number of leading dimensions for mode constant Parameters: ![]() Pad the given image on all sides with the given “pad” value. Pad ( padding, fill=0, padding_mode='constant' ) ¶ Img ( PIL Image or Tensor) – Image to be converted to grayscale.Ĭlass ansforms.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |