You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

run_inference_tests.sh 1.3 kB

3 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #!/bin/bash -e
  2. # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
  3. BIN="python tools/train_net.py"
  4. OUTPUT="inference_test_output"
  5. NUM_GPUS=2
  6. CFG_LIST=( "${@:1}" )
  7. if [ ${#CFG_LIST[@]} -eq 0 ]; then
  8. CFG_LIST=( ./configs/quick_schedules/*inference_acc_test.yaml )
  9. fi
  10. echo "========================================================================"
  11. echo "Configs to run:"
  12. echo "${CFG_LIST[@]}"
  13. echo "========================================================================"
  14. for cfg in "${CFG_LIST[@]}"; do
  15. echo "========================================================================"
  16. echo "Running $cfg ..."
  17. echo "========================================================================"
  18. $BIN \
  19. --eval-only \
  20. --num-gpus $NUM_GPUS \
  21. --config-file "$cfg" \
  22. OUTPUT_DIR $OUTPUT
  23. rm -rf $OUTPUT
  24. done
  25. echo "========================================================================"
  26. echo "Running demo.py ..."
  27. echo "========================================================================"
  28. DEMO_BIN="python demo/demo.py"
  29. COCO_DIR=datasets/coco/val2014
  30. mkdir -pv $OUTPUT
  31. set -v
  32. $DEMO_BIN --config-file ./configs/quick_schedules/panoptic_fpn_R_50_inference_acc_test.yaml \
  33. --input $COCO_DIR/COCO_val2014_0000001933* --output $OUTPUT
  34. rm -rf $OUTPUT

No Description