File size: 897 Bytes
749745d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
#pragma once
#include <torch/extension.h>


at::Tensor ROIAlign_forward_cpu(const at::Tensor& input,

                                const at::Tensor& rois,

                                const float spatial_scale,

                                const int pooled_height,

                                const int pooled_width,

                                const int sampling_ratio);


at::Tensor nms_cpu(const at::Tensor& dets,

                   const at::Tensor& scores,

                   const float threshold);


std::pair<at::Tensor, at::Tensor> soft_nms_cpu(const at::Tensor& dets,

                                               const at::Tensor& scores,

                                               const float threshold,

                                               const float sigma);