PP4AV data manipulation
October 19, 2022 · View on GitHub
Process data:
- Split dataset into
train/val/test: editimage path,label path, andsave directoryinutils/config/dataset_split_config.yamland run
python dataset_split.py
- Convert data to Coco format (output of anonymizer model saved
.txtand need convert to.json): edit config inutils/config/format_transform_config.yamland run:
python format_transform.py
- Non-maximum suppression: edit config in
sample_configconfig/nms_config.yamland run:
python nms.py
- Statistic number of boxes, AP, AR of json ground-truth and json prediction file
- input: json coco true file, json coco pred file corresponding
- output: csv statistic file (each image is a row with number boxes, AP, AR of each class)
- Edit
configinanalysis_stats_config.yaml:true_annotation_pathis list of path to json coco true file,pred_annotation_pathis list pf path json coco pred file corresponding,save_pathis list of path to save csv file,nms_threshold,true_conf_thresholdis confidence score threhold of coco true file,pred_conf_thresholdis confidence score threhold of coco pred file,size_thresholdis area threshold box removed (if area is smaller than size_threshold, remove it)
python –m utils.analysis_stats