dgs.utils.image.CustomCropResize

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

Extract all bounding boxes of a single torch tensor image as new image crops then resize the result to the given output shape, which makes the results stackable again. Additionally, the coordinates will be transformed to use the local coordinate system.

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

Methods

forward(*args, **kwargs)

Extract bounding boxes out of one or multiple images and resize the crops to the target shape.

Attributes

transform

validators

h

w