mirror of
https://github.com/gosticks/openpose.git
synced 2026-08-12 12:20:22 +00:00
37 lines
1.5 KiB
Bash
Executable File
37 lines
1.5 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
|
|
|
|
# USAGE EXAMPLE
|
|
# clear && clear && make all -j`nproc` && bash ./scripts/tests/pose_accuracy_coco_test_dev.sh
|
|
|
|
# Script for internal use. We might completely change it continuously and we will not answer questions about it.
|
|
|
|
clear && clear
|
|
|
|
# Parameters
|
|
IMAGE_FOLDER=/media/posefs3b/Users/gines/openpose_train/dataset/COCO/cocoapi/images/test2017_dev/
|
|
JSON_FOLDER=../evaluation/coco_val_jsons/
|
|
# JSON_FOLDER=/media/posefs3b/Users/gines/openpose_train/training_results/2_23_51/best_702k/
|
|
OP_BIN=./build/examples/openpose/openpose.bin
|
|
|
|
# # 1 scale
|
|
# $OP_BIN --image_dir $IMAGE_FOLDER --display 0 --render_pose 0 --cli_verbose 0.2 --write_coco_json ${JSON_FOLDER}1_test_max.json \
|
|
# --scale_number 1 --scale_gap 0.25 --maximize_positives --model_pose BODY_25B
|
|
# zip ${JSON_FOLDER}1_test_max.zip ${JSON_FOLDER}1_test_max.json
|
|
|
|
# 4 scales
|
|
# $OP_BIN --image_dir $IMAGE_FOLDER --display 0 --render_pose 0 --cli_verbose 0.2 --write_coco_json ${JSON_FOLDER}1_4_test.json \
|
|
# --scale_number 4 --scale_gap 0.25 --net_resolution "1312x736"
|
|
$OP_BIN --image_dir $IMAGE_FOLDER --display 0 --render_pose 0 --cli_verbose 0.2 --write_coco_json ${JSON_FOLDER}1_4_test_max.json \
|
|
--scale_number 4 --scale_gap 0.25 --net_resolution "1312x736" --maximize_positives
|
|
zip ${JSON_FOLDER}1_4_test_max.zip ${JSON_FOLDER}1_4_test_max.json
|
|
|
|
|
|
|
|
# Additional settings:
|
|
# 1. For maximum accuracy:
|
|
# --write_coco_json ${JSON_FOLDER}1_4_max.json --maximize_positives
|
|
# 2. For custom models:
|
|
# --model_pose BODY_25B/BODY_23 --model_folder ${JSON_FOLDER}
|