1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 15:53:03 +04:00

Added ResizeBilinear op for tf (#11050)

* Added ResizeBilinear op for tf

Combined ResizeNearestNeighbor and ResizeBilinear layers into Resize (with an interpolation param).

Minor changes to tf_importer and resize layer to save some code lines

Minor changes in init.cpp

Minor changes in tf_importer.cpp

* Replaced implementation of a custom ResizeBilinear layer to all layers

* Use Mat::ptr. Replace interpolation flags
This commit is contained in:
David
2018-06-07 15:29:04 +02:00
committed by Vadim Pisarevsky
parent 60fa6bea70
commit 7175f257b5
10 changed files with 253 additions and 284 deletions
@@ -565,14 +565,14 @@ CV__DNN_EXPERIMENTAL_NS_BEGIN
};
/**
* @brief Resize input 4-dimensional blob by nearest neighbor strategy.
* @brief Resize input 4-dimensional blob by nearest neighbor or bilinear strategy.
*
* Layer is used to support TensorFlow's resize_nearest_neighbor op.
* Layer is used to support TensorFlow's resize_nearest_neighbor and resize_bilinear ops.
*/
class CV_EXPORTS ResizeNearestNeighborLayer : public Layer
class CV_EXPORTS ResizeLayer : public Layer
{
public:
static Ptr<ResizeNearestNeighborLayer> create(const LayerParams& params);
static Ptr<ResizeLayer> create(const LayerParams& params);
};
class CV_EXPORTS ProposalLayer : public Layer