#!/bin/bash
if [ $# -lt 3 ]; then
    echo "Please provide the experiment string, camera name and camera serial as the agruments"
    echo "E.g., vision_b3_p01_2_5min__20161111T222155 north_wide_left 16062230"
    exit -1
fi
export RUNTOOL_CMD='pipedream/tools/run bazel -c opt --config=cuda'
export BINARY='//experimental/dma/traffic_lights:zim_semantic_segmentation_viz'
export EXP_DIR='/mnt/flashblade/zimdata/Intermediate/'$1

export CAMERA_NAME=$2
#'north_wide_left'
export CAMERA_SERIAL=$3
#'16062230'


echo ${RUNTOOL_CMD} $BINARY --image_dir=${EXP_DIR}/0001-${CAMERA_NAME}__${CAMERA_SERIAL} --labels_dir=${EXP_DIR}/0001-${CAMERA_NAME}__${CAMERA_SERIAL}_L --label_color_file=${EXP_DIR}/segmentation.txt --timestamp_file=${EXP_DIR}/0001-${CAMERA_NAME}__${CAMERA_SERIAL}.h264-timestamps.txt --output_dir=${EXP_DIR}/0001-${CAMERA_NAME}__${CAMERA_SERIAL}_sseg --camera_id=${CAMERA_NAME} --count=5 --skip_frames=60


#${RUNTOOL_CMD} $BINARY --image_dir=${EXP_DIR}/0001-${CAMERA_NAME}__${CAMERA_SERIAL} --labels_dir=${EXP_DIR}/0001-${CAMERA_NAME}__${CAMERA_SERIAL}_L --label_color_file=${EXP_DIR}/segmentation.txt --timestamp_file=${EXP_DIR}/0001-${CAMERA_NAME}__${CAMERA_SERIAL}.h264-timestamps.txt --output_dir=${EXP_DIR}/0001-${CAMERA_NAME}__${CAMERA_SERIAL}_sseg --camera_id=${CAMERA_NAME} --count=5 --skip_frames=60

