warning fix

This commit is contained in:
Francesco Gatti
2020-04-09 20:05:10 +02:00
parent f9e3f17c0a
commit 85588f7343
3 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -28,9 +28,9 @@ void convertFilename(std::string &filename,const std::string l_folder, const std
int main(int argc, char *argv[])
{
char ntype = 'y';
char *config_filename = "../demo/config.yaml";
char * net = "yolo3.rt";
char * labels_path = "../demo/COCO_val2017/all_labels.txt";
const char *config_filename = "../demo/config.yaml";
const char * net = "yolo3.rt";
const char * labels_path = "../demo/COCO_val2017/all_labels.txt";
bool show = false;
bool write_dets = false;
bool write_res_on_file = true;
+1 -1
View File
@@ -31,7 +31,7 @@ struct PR
void print();
};
void readmAPParams( char* config_filename, int& classes, int& map_points,
void readmAPParams( const char* config_filename, int& classes, int& map_points,
int& map_levels, float& map_step, float& IoU_thresh,
float& conf_thresh, bool& verbose);
+1 -1
View File
@@ -16,7 +16,7 @@ void PR::print(){
std::cout<<"precision: "<<precision<<" recall: "<<recall<<" tp: "<<tp<<" fp:"<<fp<<" fn:"<<fn<<std::endl;
}
void readmAPParams( char* config_filename, int& classes, int& map_points,
void readmAPParams( const char* config_filename, int& classes, int& map_points,
int& map_levels, float& map_step, float& IoU_thresh,
float& conf_thresh, bool& verbose) {
YAML::Node config = YAML::LoadFile(config_filename);