| 91 | } |
| 92 | |
| 93 | inline bool does_exist(const std::string& name) { |
| 94 | struct stat buffer; |
| 95 | return (stat(name.c_str(), &buffer) == 0); |
| 96 | } |
| 97 | |
| 98 | void Detector::Train(std::string train_val_path, std::string image_type, int num_epochs, int batch_size, |
| 99 | float learning_rate, std::string save_path, std::string pretrained_path) { |