1. 训练 python tools/train.py [configs_file] --gpus 1 --work_dir work_dirs 2. 测试 (1)Output pkl file This command will output “results_name.pkl” file. python tools/test.py [configs_file] [pth] --out results_name.pkl --eval bbox python tools/test.py configs/faster_rcnn/faster_rcnn_r50_fpn_1x_coco.py checkpoints/faster_rcnn_r50_fpn_1x_coco_20200130-047c8118.pth --out=work_dirs/result.pkl --eval bbox (2) Output json result file This command will output “results.bbox.json” file. python tools/test.py [configs_file] [pth] --eval-options "jsonfile_prefix=results_name" --eval bbox python tools/test.py configs/faster_rcnn/faster_rcnn_r50_fpn_1x_coco.py checkpoints/faster_rcnn_r50_fpn_1x_coco_20200130-047c8118.pth --eval bbox --eval-options "jsonfile_prefix=results" 3. 输出coco metric python tools/analysis_tools/eval_metric.py [configs_file] [pkl_file] --eval bbox python tools/analysis_tools/eval_metric.py configs/faster_rcnn/faster_rcnn_r50_fpn_1x_coco.py work_dirs/faster_rcn...
留言
張貼留言