sampling_ratio=- 1

Apply the average roi align to input. [He, 2017].

The boxes should be packed with a shape like \((N, 5)\), where \(N\) is the number of boxes.

Each box is a 5d sequence containing (batch_index, x1, y1, x2, y2).

  • input (dragon.vm.torch.Tensor) – The input tensor.
  • boxes (dragon.vm.torch.Tensor) – The box coordinates.
  • output_size (Sequence[int]) – The output height and width.
  • spatial_scale (float, optional, default=1.0) – The input scale to the size of boxes.
  • sampling_ratio (int, optional, default=-1) – The number of sampling grids for boxes.

dragon.vm.torch.Tensor – The output tensor.