box_convert {torchvision}R Documentation

Box Convert

Description

Converts boxes from given in_fmt to out_fmt.

Usage

box_convert(boxes, in_fmt, out_fmt)

Arguments

boxes

(Tensor[N, 4]): boxes which will be converted.

in_fmt

(str): Input format of given boxes. Supported formats are ['xyxy', 'xywh', 'cxcywh'].

out_fmt

(str): Output format of given boxes. Supported formats are ['xyxy', 'xywh', 'cxcywh']

Details

Supported in_fmt and out_fmt are:

Value

boxes (Tensor[N, 4]): Boxes into converted format.


[Package torchvision version 0.7.0 Index]