Spaces:
Runtime error
Runtime error
File size: 561 Bytes
cb80c28 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
#!/bin/sh
# Ensure the script exits on the first error and prints each command before executing it
set -e
set -x
# Check if config, data, upload_s3_arg, and s3_path arguments were provided, if not, set default values
config=${1:-./exps/simplecil_general.json}
data=${2:-./car_data/car_data}
upload_s3_arg=${3:-./models}
s3_path=${4:-s3://pycil.com/"$(date -u +"%Y-%m-%dT%H:%M:%SZ")"}
# Run the training script with the provided or default config and data arguments
python main.py --config "$config" --data "$data"
./upload_s3.sh "$upload_s3_arg" "$s3_path"
|