mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
20 lines
534 B
C
20 lines
534 B
C
#ifndef YOLO_LAYER_H
|
|
#define YOLO_LAYER_H
|
|
|
|
#include "darknet.h"
|
|
#include "layer.h"
|
|
#include "network.h"
|
|
|
|
layer make_yolo_layer(int batch, int w, int h, int n, int total, int *mask, int classes);
|
|
void forward_yolo_layer(const layer l, network net);
|
|
void backward_yolo_layer(const layer l, network net);
|
|
void resize_yolo_layer(layer *l, int w, int h);
|
|
int yolo_num_detections(layer l, float thresh);
|
|
|
|
#ifdef GPU
|
|
void forward_yolo_layer_gpu(const layer l, network net);
|
|
void backward_yolo_layer_gpu(layer l, network net);
|
|
#endif
|
|
|
|
#endif
|