warning fix
This commit is contained in:
+3
-3
@@ -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;
|
||||
|
||||
@@ -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
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user