darknet  v3
Functions
region_layer.c File Reference
#include "region_layer.h"
#include "activations.h"
#include "blas.h"
#include "box.h"
#include "cuda.h"
#include "utils.h"
#include <stdio.h>
#include <assert.h>
#include <string.h>
#include <stdlib.h>
Include dependency graph for region_layer.c:

Go to the source code of this file.

Functions

layer make_region_layer (int batch, int w, int h, int n, int classes, int coords)
 
void resize_region_layer (layer *l, int w, int h)
 
box get_region_box (float *x, float *biases, int n, int index, int i, int j, int w, int h, int stride)
 
float delta_region_box (box truth, float *x, float *biases, int n, int index, int i, int j, int w, int h, float *delta, float scale, int stride)
 
void delta_region_mask (float *truth, float *x, int n, int index, float *delta, int stride, int scale)
 
void delta_region_class (float *output, float *delta, int index, int class, int classes, tree *hier, float scale, int stride, float *avg_cat, int tag)
 
float logit (float x)
 
float tisnan (float x)
 
int entry_index (layer l, int batch, int location, int entry)
 
void forward_region_layer (const layer l, network net)
 
void backward_region_layer (const layer l, network net)
 
void correct_region_boxes (detection *dets, int n, int w, int h, int netw, int neth, int relative)
 
void get_region_detections (layer l, int w, int h, int netw, int neth, float thresh, int *map, float tree_thresh, int relative, detection *dets)
 
void zero_objectness (layer l)
 

Function Documentation

◆ backward_region_layer()

void backward_region_layer ( const layer  l,
network  net 
)

Definition at line 323 of file region_layer.c.

◆ correct_region_boxes()

void correct_region_boxes ( detection dets,
int  n,
int  w,
int  h,
int  netw,
int  neth,
int  relative 
)

Definition at line 336 of file region_layer.c.

◆ delta_region_box()

float delta_region_box ( box  truth,
float *  x,
float *  biases,
int  n,
int  index,
int  i,
int  j,
int  w,
int  h,
float *  delta,
float  scale,
int  stride 
)

Definition at line 86 of file region_layer.c.

◆ delta_region_class()

void delta_region_class ( float *  output,
float *  delta,
int  index,
int  class,
int  classes,
tree hier,
float  scale,
int  stride,
float *  avg_cat,
int  tag 
)

Definition at line 112 of file region_layer.c.

◆ delta_region_mask()

void delta_region_mask ( float *  truth,
float *  x,
int  n,
int  index,
float *  delta,
int  stride,
int  scale 
)

Definition at line 103 of file region_layer.c.

◆ entry_index()

int entry_index ( layer  l,
int  batch,
int  location,
int  entry 
)

Definition at line 151 of file region_layer.c.

◆ forward_region_layer()

void forward_region_layer ( const layer  l,
network  net 
)

Definition at line 158 of file region_layer.c.

◆ get_region_box()

box get_region_box ( float *  x,
float *  biases,
int  n,
int  index,
int  i,
int  j,
int  w,
int  h,
int  stride 
)

Definition at line 76 of file region_layer.c.

◆ get_region_detections()

void get_region_detections ( layer  l,
int  w,
int  h,
int  netw,
int  neth,
float  thresh,
int *  map,
float  tree_thresh,
int  relative,
detection dets 
)

Definition at line 364 of file region_layer.c.

◆ logit()

float logit ( float  x)

Definition at line 141 of file region_layer.c.

◆ make_region_layer()

layer make_region_layer ( int  batch,
int  w,
int  h,
int  n,
int  classes,
int  coords 
)

Definition at line 13 of file region_layer.c.

◆ resize_region_layer()

void resize_region_layer ( layer l,
int  w,
int  h 
)

Definition at line 56 of file region_layer.c.

◆ tisnan()

float tisnan ( float  x)

Definition at line 146 of file region_layer.c.

◆ zero_objectness()

void zero_objectness ( layer  l)

Definition at line 497 of file region_layer.c.