run_ssd_270.sh 872 B

1234567891011121314151617181920212223242526272829
  1. #! /bin/bash
  2. CURRENT_DIR=$(dirname $(readlink -f $0) )
  3. pushd $CURRENT_DIR
  4. mkdir -p cache
  5. if [ ! -f "cache/resnet34_ssd.cambricon" ]; then
  6. wget -O cache/resnet34_ssd.cambricon http://video.cambricon.com/models/MLU270/Primary_Detector/ssd/resnet34_ssd.cambricon
  7. fi
  8. if [ ! -f "cache/label_voc.txt" ]; then
  9. wget -O cache/label_voc.txt http://video.cambricon.com/models/MLU270/Primary_Detector/ssd/label_voc.txt
  10. fi
  11. model_file="${CURRENT_DIR}/cache/resnet34_ssd.cambricon"
  12. label_path="${CURRENT_DIR}/cache/label_voc.txt"
  13. data_path="${CURRENT_DIR}/../data/videos/cars.mp4"
  14. track_model_path="cpu"
  15. ../bin/stream-app \
  16. --model_path $model_file \
  17. --track_model_path $track_model_path \
  18. --label_path $label_path \
  19. --data_path $data_path \
  20. --net_type "SSD" \
  21. --show=false \
  22. --save_video=true \
  23. --wait_time 0 \
  24. --repeat_time 0
  25. popd