You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
717 B

8 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. // Oh boy, why am I about to do this....
  2. #ifndef NETWORK_H
  3. #define NETWORK_H
  4. #include "darknet.h"
  5. #include "image.h"
  6. #include "layer.h"
  7. #include "data.h"
  8. #include "tree.h"
  9. namespace DN{
  10. #ifdef GPU
  11. float train_network_datum_gpu(network net);
  12. float *network_predict_gpu(network net, float *input);
  13. void pull_network_output(network net);
  14. #endif
  15. void compare_networks(network n1, network n2, data d);
  16. char *get_layer_string(LAYER_TYPE a);
  17. network make_network(int n);
  18. float network_accuracy_multi(network net, data d, int n);
  19. int get_predicted_class_network(network net);
  20. void print_network(network net);
  21. int resize_network(network *net, int w, int h);
  22. void calc_network_cost(network net);
  23. };
  24. #endif