|
enum | UNUSED_ENUM_TYPE { UNUSED_DEF_VAL
} |
|
enum | ACTIVATION {
LOGISTIC
,
RELU
,
RELU6
,
RELIE
,
LINEAR
,
RAMP
,
TANH
,
PLSE
,
REVLEAKY
,
LEAKY
,
ELU
,
LOGGY
,
STAIR
,
HARDTAN
,
LHTAN
,
SELU
,
GELU
,
SWISH
,
MISH
,
HARD_MISH
,
NORM_CHAN
,
NORM_CHAN_SOFTMAX
,
NORM_CHAN_SOFTMAX_MAXVAL
} |
|
enum | IOU_LOSS {
IOU
,
GIOU
,
MSE
,
DIOU
,
CIOU
} |
|
enum | NMS_KIND {
DEFAULT_NMS
,
GREEDY_NMS
,
DIOU_NMS
,
CORNERS_NMS
} |
|
enum | YOLO_POINT {
YOLO_CENTER = 1 << 0
,
YOLO_LEFT_TOP = 1 << 1
,
YOLO_RIGHT_BOTTOM = 1 << 2
} |
|
enum | WEIGHTS_TYPE_T {
NO_WEIGHTS
,
PER_FEATURE
,
PER_CHANNEL
} |
|
enum | WEIGHTS_NORMALIZATION_T {
NO_NORMALIZATION
,
RELU_NORMALIZATION
,
SOFTMAX_NORMALIZATION
} |
|
enum | IMTYPE {
PNG
,
BMP
,
TGA
,
JPG
} |
|
enum | BINARY_ACTIVATION {
MULT
,
ADD
,
SUB
,
DIV
} |
|
enum | LAYER_TYPE {
CONVOLUTIONAL
,
DECONVOLUTIONAL
,
CONNECTED
,
MAXPOOL
,
LOCAL_AVGPOOL
,
SOFTMAX
,
DETECTION
,
DROPOUT
,
CROP
,
ROUTE
,
COST
,
NORMALIZATION
,
AVGPOOL
,
LOCAL
,
SHORTCUT
,
SCALE_CHANNELS
,
SAM
,
ACTIVE
,
RNN
,
GRU
,
LSTM
,
CONV_LSTM
,
HISTORY
,
CRNN
,
BATCHNORM
,
NETWORK
,
XNOR
,
REGION
,
YOLO
,
GAUSSIAN_YOLO
,
ISEG
,
REORG
,
REORG_OLD
,
UPSAMPLE
,
LOGXENT
,
L2NORM
,
EMPTY
,
BLANK
,
CONTRASTIVE
,
IMPLICIT
} |
|
enum | COST_TYPE {
SSE
,
MASKED
,
L1
,
SEG
,
SMOOTH
,
WGAN
} |
|
enum | learning_rate_policy {
CONSTANT
,
STEP
,
EXP
,
POLY
,
STEPS
,
SIG
,
RANDOM
,
SGDR
} |
|
enum | data_type {
CLASSIFICATION_DATA
,
DETECTION_DATA
,
REGION_DATA
,
IMAGE_DATA
,
COMPARE_DATA
,
WRITING_DATA
,
TAG_DATA
,
OLD_CLASSIFICATION_DATA
,
SUPER_DATA
,
LETTERBOX_DATA
} |
| Things that we can do on a secondary thread. More...
|
|
|
network * | load_network (char *cfg, char *weights, int clear) |
|
network * | load_network_custom (char *cfg, char *weights, int clear, int batch) |
|
void | free_network (network net) |
|
void | free_network_ptr (network *net) |
|
load_args | get_base_args (network *net) |
|
void | do_nms_sort (detection *dets, int total, int classes, float thresh) |
|
void | do_nms_obj (detection *dets, int total, int classes, float thresh) |
|
void | diounms_sort (detection *dets, int total, int classes, float thresh, NMS_KIND nms_kind, float beta1) |
|
float * | network_predict (network net, float *input) |
|
float * | network_predict_ptr (network *net, float *input) |
|
detection * | get_network_boxes (network *net, int w, int h, float thresh, float hier, int *map, int relative, int *num, int letter) |
|
det_num_pair * | network_predict_batch (network *net, image im, int batch_size, int w, int h, float thresh, float hier, int *map, int relative, int letter) |
|
void | free_detections (detection *dets, int n) |
|
void | free_batch_detections (det_num_pair *det_num_pairs, int n) |
|
void | fuse_conv_batchnorm (network net) |
|
void | calculate_binary_weights (network net) |
|
char * | detection_to_json (detection *dets, int nboxes, int classes, char **names, long long int frame_id, char *filename) |
|
layer * | get_network_layer (network *net, int i) |
|
detection * | make_network_boxes (network *net, float thresh, int *num) |
|
void | reset_rnn (network *net) |
|
float * | network_predict_image (network *net, image im) |
|
float * | network_predict_image_letterbox (network *net, image im) |
|
float | validate_detector_map (char *datacfg, char *cfgfile, char *weightfile, float thresh_calc_avg_iou, const float iou_thresh, const int map_points, int letter_box, network *existing_net) |
|
void | train_detector (char *datacfg, char *cfgfile, char *weightfile, int *gpus, int ngpus, int clear, int dont_show, int calc_map, float thresh, float iou_thresh, int mjpeg_port, int show_imgs, int benchmark_layers, char *chart_path) |
|
void | test_detector (char *datacfg, char *cfgfile, char *weightfile, char *filename, float thresh, float hier_thresh, int dont_show, int ext_output, int save_labels, char *outfile, int letter_box, int benchmark_layers) |
|
int | network_width (network *net) |
|
int | network_height (network *net) |
|
void | optimize_picture (network *net, image orig, int max_layer, float scale, float rate, float thresh, int norm) |
|
void | make_image_red (image im) |
|
image | make_attention_image (int img_size, float *original_delta_cpu, float *original_input_cpu, int w, int h, int c, float alpha) |
|
image | resize_image (image im, int w, int h) |
|
void | quantize_image (image im) |
|
void | copy_image_from_bytes (image im, char *pdata) |
|
image | letterbox_image (image im, int w, int h) |
|
void | rgbgr_image (image im) |
|
image | make_image (int w, int h, int c) |
|
image | load_image (char *filename, int w, int h, int c) |
|
void | free_image (image m) |
|
image | crop_image (image im, int dx, int dy, int w, int h) |
|
image | resize_min (image im, int min) |
|
void | free_layer_custom (layer l, int keep_cudnn_desc) |
|
void | free_layer (layer l) |
|
void | cuda_pull_array (float *x_gpu, float *x, size_t n) |
|
void | cuda_pull_array_async (float *x_gpu, float *x, size_t n) |
|
void | cuda_set_device (int n) |
|
void * | cuda_get_context () |
|
void | free_ptrs (void **ptrs, int n) |
|
void | top_k (float *a, int n, int k, int *index) |
|
tree * | read_tree (char *filename) |
|
metadata | get_metadata (char *file) |
|
void | delete_json_sender () |
|
void | send_json_custom (char const *send_buf, int port, int timeout) |
|
double | get_time_point () |
|
void | start_timer () |
|
void | stop_timer () |
|
double | get_time () |
|
void | stop_timer_and_show () |
|
void | stop_timer_and_show_name (char *name) |
|
void | show_total_time () |
|
void | set_track_id (detection *new_dets, int new_dets_num, float thresh, float sim_thresh, float track_ciou_norm, int deque_size, int dets_for_track, int dets_for_show) |
|
int | fill_remaining_id (detection *new_dets, int new_dets_num, int new_track_id, float thresh) |
|
void | init_cpu () |
|