You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
874 B
27 lines
874 B
#ifndef __CORTEX_REGION_LAYER_HEADER__
|
|
#define __CORTEX_REGION_LAYER_HEADER__
|
|
|
|
#include "../base/basicLayer.h"
|
|
#include "../base/basicTree.h"
|
|
|
|
class regionLayer: public cortexLayer{
|
|
private:
|
|
cortexTREE * m_pSoftmaxTree;
|
|
public:
|
|
explicit regionLayer(bool useGPU = true);
|
|
~regionLayer();
|
|
bool create(uint32_t batch, uint32_t w, uint32_t h, uint32_t n, uint32_t classes, uint32_t coords);
|
|
virtual void forward(cortexSTATE state);
|
|
virtual void backward(cortexSTATE state);
|
|
virtual bool resize(uint32_t w, uint32_t h);
|
|
void get_region_boxes(uint32_t w, uint32_t h, float thresh, float **probs, cortexBOXLABEL *boxes, bool only_objectness, uint32_t *map);
|
|
uint32_t getBoxesCount(void);
|
|
uint32_t getClassesCount(void);
|
|
|
|
friend class gpuCUDA;
|
|
friend class cpuHOST;
|
|
friend class cortexLayersFactory;
|
|
};
|
|
|
|
|
|
#endif
|