warning fix

This commit is contained in:
Francesco Gatti
2020-04-09 20:05:10 +02:00
parent fc873c5219
commit 585f66e2f6
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[]) int main(int argc, char *argv[])
{ {
char ntype = 'y'; char ntype = 'y';
char *config_filename = "../demo/config.yaml"; const char *config_filename = "../demo/config.yaml";
char * net = "yolo3.rt"; const char * net = "yolo3.rt";
char * labels_path = "../demo/COCO_val2017/all_labels.txt"; const char * labels_path = "../demo/COCO_val2017/all_labels.txt";
bool show = false; bool show = false;
bool write_dets = false; bool write_dets = false;
bool write_res_on_file = true; bool write_res_on_file = true;
+1 -1
View File
@@ -31,7 +31,7 @@ struct PR
void print(); 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, int& map_levels, float& map_step, float& IoU_thresh,
float& conf_thresh, bool& verbose); 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; 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, int& map_levels, float& map_step, float& IoU_thresh,
float& conf_thresh, bool& verbose) { float& conf_thresh, bool& verbose) {
YAML::Node config = YAML::LoadFile(config_filename); YAML::Node config = YAML::LoadFile(config_filename);