HoverNetTransform
HoverNetTransform ¶
Bases: OnlyInstMapTransform
__call__ ¶
Fix duplicate values and generate gradients.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
inst
|
ndarray
|
Instance labelled mask. Shape (H, W). |
required |
Returns:
| Type | Description |
|---|---|
ndarray
|
np.ndarray: Horizontal and vertical gradients of objects. Shape: (2, H, W). Dtype: float64. |