dgs.utils.image.CustomResize

class dgs.utils.image.CustomResize(*args: Any, **kwargs: Any)[source]

Resize image, bbox and key points with this custom transform.

The image and bbox are resized using regular torch resize transforms.

__init__(*args: Any, **kwargs: Any) None

Methods

forward(*args, **kwargs)

Resize image, bbox and key points in one go.

Attributes

validators

H

W

h

w