MCPcopy Create free account
hub / github.com/OpenGVLab/HumanBench / apply_image

Method apply_image

PATH/core/data/transforms/seg_transforms_dev.py:63–73  ·  view source on GitHub ↗

Apply the transform on an image. Args: img (ndarray): of shape NxHxWxC, or HxWxC or HxW. The array can be of type uint8 in range [0, 255], or floating point in range [0, 1] or [0, 255]. Returns: ndarray: image after ap

(self, img: np.ndarray)

Source from the content-addressed store, hash-verified

61
62 @abstractmethod
63 def apply_image(self, img: np.ndarray):
64 """
65 Apply the transform on an image.
66
67 Args:
68 img (ndarray): of shape NxHxWxC, or HxWxC or HxW. The array can be
69 of type uint8 in range [0, 255], or floating point in range
70 [0, 1] or [0, 255].
71 Returns:
72 ndarray: image after apply the transformation.
73 """
74
75 @abstractmethod
76 def apply_coords(self, coords: np.ndarray):

Callers 2

apply_segmentationMethod · 0.95
transformMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected