#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>
Go to the source code of this file.
Defines | |
#define | DOABS 1 |
Functions | |
void | backward_region_layer (const region_layer l, network_state state) |
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) |
void | delta_region_class (float *output, float *delta, int index, int class, int classes, tree *hier, float scale, float *avg_cat) |
void | forward_region_layer (const region_layer l, network_state state) |
box | get_region_box (float *x, float *biases, int n, int index, int i, int j, int w, int h) |
void | get_region_boxes (layer l, int w, int h, float thresh, float **probs, box *boxes, int only_objectness) |
float | logit (float x) |
region_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) |
void | softmax_tree (float *input, int batch, int inputs, float temp, tree *hierarchy, float *output) |
float | tisnan (float x) |
#define DOABS 1 |
Definition at line 12 of file region_layer.c.
void backward_region_layer | ( | const region_layer | l, |
network_state | state | ||
) |
Definition at line 322 of file region_layer.c.
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 | ||
) |
Definition at line 87 of file region_layer.c.
void delta_region_class | ( | float * | output, |
float * | delta, | ||
int | index, | ||
int | class, | ||
int | classes, | ||
tree * | hier, | ||
float | scale, | ||
float * | avg_cat | ||
) |
Definition at line 108 of file region_layer.c.
void forward_region_layer | ( | const region_layer | l, |
network_state | state | ||
) |
Definition at line 144 of file region_layer.c.
box get_region_box | ( | float * | x, |
float * | biases, | ||
int | n, | ||
int | index, | ||
int | i, | ||
int | j, | ||
int | w, | ||
int | h | ||
) |
Definition at line 73 of file region_layer.c.
void get_region_boxes | ( | layer | l, |
int | w, | ||
int | h, | ||
float | thresh, | ||
float ** | probs, | ||
box * | boxes, | ||
int | only_objectness | ||
) |
Definition at line 327 of file region_layer.c.
float logit | ( | float | x | ) |
Definition at line 133 of file region_layer.c.
region_layer make_region_layer | ( | int | batch, |
int | w, | ||
int | h, | ||
int | n, | ||
int | classes, | ||
int | coords | ||
) |
Definition at line 14 of file region_layer.c.
void resize_region_layer | ( | layer * | l, |
int | w, | ||
int | h | ||
) |
Definition at line 53 of file region_layer.c.
void softmax_tree | ( | float * | input, |
int | batch, | ||
int | inputs, | ||
float | temp, | ||
tree * | hierarchy, | ||
float * | output | ||
) |
Definition at line 35 of file softmax_layer.c.
float tisnan | ( | float | x | ) |
Definition at line 138 of file region_layer.c.