openvino.runtime.opset12.roi_pooling

openvino.runtime.opset12.roi_pooling(input: Union[openvino._pyopenvino.Node, int, float, numpy.ndarray], coords: Union[openvino._pyopenvino.Node, int, float, numpy.ndarray], output_roi: Optional[List[int]] = None, spatial_scale: Optional[Union[int, float, numpy.ndarray]] = None, method: str = 'max', name: Optional[str] = None, *, output_size: Optional[List[int]] = None) openvino._pyopenvino.Node

Return a node which produces an ROIPooling operation.

Parameters
  • input – Input feature map {N, C, …}.

  • coords – Coordinates of bounding boxes.

  • output_roi – Height/Width of ROI output features (shape).

  • spatial_scale – Ratio of input feature map over input image size (float).

  • method – Method of pooling - string: “max” or “bilinear”. Default: “max”

  • output_size – (DEPRECATED!) Height/Width of ROI output features (shape). Will override output_roi if used and change behavior of the operator.

Returns

ROIPooling node.