yolo_layer.h 894 B

123456789101112131415161718192021222324252627
  1. #ifndef YOLO_LAYER_H
  2. #define YOLO_LAYER_H
  3. //#include "darknet.h"
  4. #include "layer.h"
  5. #include "network.h"
  6. #ifdef __cplusplus
  7. extern "C" {
  8. #endif
  9. layer make_yolo_layer(int batch, int w, int h, int n, int total, int *mask, int classes, int max_boxes);
  10. void forward_yolo_layer(const layer l, network_state state);
  11. void backward_yolo_layer(const layer l, network_state state);
  12. void resize_yolo_layer(layer *l, int w, int h);
  13. int yolo_num_detections(layer l, float thresh);
  14. int get_yolo_detections(layer l, int w, int h, int netw, int neth, float thresh, int *map, int relative, detection *dets, int letter);
  15. void correct_yolo_boxes(detection *dets, int n, int w, int h, int netw, int neth, int relative, int letter);
  16. #ifdef GPU
  17. void forward_yolo_layer_gpu(const layer l, network_state state);
  18. void backward_yolo_layer_gpu(layer l, network_state state);
  19. #endif
  20. #ifdef __cplusplus
  21. }
  22. #endif
  23. #endif