mirror of
https://github.com/opencv/opencv.git
synced 2026-07-31 00:03:03 +04:00
Merge branch 4.x
This commit is contained in:
@@ -284,6 +284,16 @@ CV__DNN_INLINE_NS_BEGIN
|
||||
static Ptr<LRNLayer> create(const LayerParams& params);
|
||||
};
|
||||
|
||||
|
||||
/** @brief ArgMax/ArgMin layer
|
||||
* @note returns indices as floats, which means the supported range is [-2^24; 2^24]
|
||||
*/
|
||||
class CV_EXPORTS ArgLayer : public Layer
|
||||
{
|
||||
public:
|
||||
static Ptr<ArgLayer> create(const LayerParams& params);
|
||||
};
|
||||
|
||||
class CV_EXPORTS PoolingLayer : public Layer
|
||||
{
|
||||
public:
|
||||
@@ -545,6 +555,8 @@ CV__DNN_INLINE_NS_BEGIN
|
||||
class CV_EXPORTS ELULayer : public ActivationLayer
|
||||
{
|
||||
public:
|
||||
float alpha;
|
||||
|
||||
static Ptr<ELULayer> create(const LayerParams ¶ms);
|
||||
};
|
||||
|
||||
@@ -600,6 +612,166 @@ CV__DNN_INLINE_NS_BEGIN
|
||||
static Ptr<ExpLayer> create(const LayerParams ¶ms);
|
||||
};
|
||||
|
||||
class CV_EXPORTS CeilLayer : public ActivationLayer
|
||||
{
|
||||
public:
|
||||
static Ptr<CeilLayer> create(const LayerParams ¶ms);
|
||||
};
|
||||
|
||||
class CV_EXPORTS FloorLayer : public ActivationLayer
|
||||
{
|
||||
public:
|
||||
static Ptr<FloorLayer> create(const LayerParams ¶ms);
|
||||
};
|
||||
|
||||
class CV_EXPORTS LogLayer : public ActivationLayer
|
||||
{
|
||||
public:
|
||||
static Ptr<LogLayer> create(const LayerParams ¶ms);
|
||||
};
|
||||
|
||||
class CV_EXPORTS RoundLayer : public ActivationLayer
|
||||
{
|
||||
public:
|
||||
static Ptr<RoundLayer> create(const LayerParams ¶ms);
|
||||
};
|
||||
|
||||
class CV_EXPORTS SqrtLayer : public ActivationLayer
|
||||
{
|
||||
public:
|
||||
static Ptr<SqrtLayer> create(const LayerParams ¶ms);
|
||||
};
|
||||
|
||||
class CV_EXPORTS NotLayer : public ActivationLayer
|
||||
{
|
||||
public:
|
||||
static Ptr<NotLayer> create(const LayerParams ¶ms);
|
||||
};
|
||||
|
||||
class CV_EXPORTS AcosLayer : public ActivationLayer
|
||||
{
|
||||
public:
|
||||
static Ptr<AcosLayer> create(const LayerParams ¶ms);
|
||||
};
|
||||
|
||||
class CV_EXPORTS AcoshLayer : public ActivationLayer
|
||||
{
|
||||
public:
|
||||
static Ptr<AcoshLayer> create(const LayerParams ¶ms);
|
||||
};
|
||||
|
||||
class CV_EXPORTS AsinLayer : public ActivationLayer
|
||||
{
|
||||
public:
|
||||
static Ptr<AsinLayer> create(const LayerParams ¶ms);
|
||||
};
|
||||
|
||||
class CV_EXPORTS AsinhLayer : public ActivationLayer
|
||||
{
|
||||
public:
|
||||
static Ptr<AsinhLayer> create(const LayerParams ¶ms);
|
||||
};
|
||||
|
||||
class CV_EXPORTS AtanLayer : public ActivationLayer
|
||||
{
|
||||
public:
|
||||
static Ptr<AtanLayer> create(const LayerParams ¶ms);
|
||||
};
|
||||
|
||||
class CV_EXPORTS AtanhLayer : public ActivationLayer
|
||||
{
|
||||
public:
|
||||
static Ptr<AtanhLayer> create(const LayerParams ¶ms);
|
||||
};
|
||||
|
||||
class CV_EXPORTS CosLayer : public ActivationLayer
|
||||
{
|
||||
public:
|
||||
static Ptr<CosLayer> create(const LayerParams ¶ms);
|
||||
};
|
||||
|
||||
class CV_EXPORTS CoshLayer : public ActivationLayer
|
||||
{
|
||||
public:
|
||||
static Ptr<CoshLayer> create(const LayerParams ¶ms);
|
||||
};
|
||||
|
||||
class CV_EXPORTS ErfLayer : public ActivationLayer
|
||||
{
|
||||
public:
|
||||
static Ptr<ErfLayer> create(const LayerParams ¶ms);
|
||||
};
|
||||
|
||||
class CV_EXPORTS HardSwishLayer : public ActivationLayer
|
||||
{
|
||||
public:
|
||||
static Ptr<HardSwishLayer> create(const LayerParams ¶ms);
|
||||
};
|
||||
|
||||
class CV_EXPORTS SinLayer : public ActivationLayer
|
||||
{
|
||||
public:
|
||||
static Ptr<SinLayer> create(const LayerParams ¶ms);
|
||||
};
|
||||
|
||||
class CV_EXPORTS SinhLayer : public ActivationLayer
|
||||
{
|
||||
public:
|
||||
static Ptr<SinhLayer> create(const LayerParams ¶ms);
|
||||
};
|
||||
|
||||
class CV_EXPORTS SoftplusLayer : public ActivationLayer
|
||||
{
|
||||
public:
|
||||
static Ptr<SoftplusLayer> create(const LayerParams ¶ms);
|
||||
};
|
||||
|
||||
class CV_EXPORTS SoftsignLayer : public ActivationLayer
|
||||
{
|
||||
public:
|
||||
static Ptr<SoftsignLayer> create(const LayerParams ¶ms);
|
||||
};
|
||||
|
||||
class CV_EXPORTS TanLayer : public ActivationLayer
|
||||
{
|
||||
public:
|
||||
static Ptr<TanLayer> create(const LayerParams ¶ms);
|
||||
};
|
||||
|
||||
class CV_EXPORTS CeluLayer : public ActivationLayer
|
||||
{
|
||||
public:
|
||||
float alpha;
|
||||
|
||||
static Ptr<CeluLayer> create(const LayerParams ¶ms);
|
||||
};
|
||||
|
||||
class CV_EXPORTS HardSigmoidLayer : public ActivationLayer
|
||||
{
|
||||
public:
|
||||
float alpha;
|
||||
float beta;
|
||||
|
||||
static Ptr<HardSigmoidLayer> create(const LayerParams ¶ms);
|
||||
};
|
||||
|
||||
class CV_EXPORTS SeluLayer : public ActivationLayer
|
||||
{
|
||||
public:
|
||||
float alpha;
|
||||
float gamma;
|
||||
|
||||
static Ptr<SeluLayer> create(const LayerParams ¶ms);
|
||||
};
|
||||
|
||||
class CV_EXPORTS ThresholdedReluLayer : public ActivationLayer
|
||||
{
|
||||
public:
|
||||
float alpha;
|
||||
|
||||
static Ptr<ThresholdedReluLayer> create(const LayerParams ¶ms);
|
||||
};
|
||||
|
||||
class CV_EXPORTS ActivationLayerInt8 : public ActivationLayer
|
||||
{
|
||||
public:
|
||||
@@ -665,6 +837,7 @@ CV__DNN_INLINE_NS_BEGIN
|
||||
public:
|
||||
bool hasBias;
|
||||
int axis;
|
||||
String mode;
|
||||
|
||||
static Ptr<ScaleLayer> create(const LayerParams& params);
|
||||
};
|
||||
@@ -689,6 +862,12 @@ CV__DNN_INLINE_NS_BEGIN
|
||||
static Ptr<Layer> create(const LayerParams& params);
|
||||
};
|
||||
|
||||
class CV_EXPORTS CompareLayer : public Layer
|
||||
{
|
||||
public:
|
||||
static Ptr<Layer> create(const LayerParams& params);
|
||||
};
|
||||
|
||||
class CV_EXPORTS DataAugmentationLayer : public Layer
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -74,6 +74,7 @@ CV__DNN_INLINE_NS_BEGIN
|
||||
DNN_BACKEND_OPENCV,
|
||||
DNN_BACKEND_VKCOM,
|
||||
DNN_BACKEND_CUDA,
|
||||
DNN_BACKEND_WEBNN,
|
||||
#ifdef __OPENCV_BUILD
|
||||
DNN_BACKEND_INFERENCE_ENGINE_NGRAPH = 1000000, // internal - use DNN_BACKEND_INFERENCE_ENGINE + setInferenceEngineBackendType()
|
||||
DNN_BACKEND_INFERENCE_ENGINE_NN_BUILDER_2019, // internal - use DNN_BACKEND_INFERENCE_ENGINE + setInferenceEngineBackendType()
|
||||
@@ -307,6 +308,8 @@ CV__DNN_INLINE_NS_BEGIN
|
||||
|
||||
virtual Ptr<BackendNode> initVkCom(const std::vector<Ptr<BackendWrapper> > &inputs);
|
||||
|
||||
virtual Ptr<BackendNode> initWebnn(const std::vector<Ptr<BackendWrapper> > &inputs, const std::vector<Ptr<BackendNode> >& nodes);
|
||||
|
||||
/**
|
||||
* @brief Returns a CUDA backend node
|
||||
*
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#define OPENCV_DNN_VERSION_HPP
|
||||
|
||||
/// Use with major OpenCV version only.
|
||||
#define OPENCV_DNN_API_VERSION 20211015
|
||||
#define OPENCV_DNN_API_VERSION 20211230
|
||||
|
||||
#if !defined CV_DOXYGEN && !defined CV_STATIC_ANALYSIS && !defined CV_DNN_DONT_ADD_INLINE_NS
|
||||
#define CV__DNN_INLINE_NS __CV_CAT(dnn5_v, OPENCV_DNN_API_VERSION)
|
||||
|
||||
Reference in New Issue
Block a user