cvgpu.sh 271 B

1234567891011
  1. #!/bin/bash
  2. dir=$(dirname "$0")
  3. python_executable="$dir/miniconda3/bin/python"
  4. if [ "$1" = "watch" ]; then
  5. shift
  6. watch -n 10 $python_executable "$dir"/python/gpu_status.py --port 8030 $@
  7. else
  8. $python_executable "$dir"/python/gpu_status.py --port 8030 $@
  9. fi