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

15 lines
601B

  1. #!/bin/bash
  2. # Hyperparameter evolution commands (avoids CUDA memory leakage issues)
  3. # Replaces train.py python generations 'for' loop with a bash 'for' loop
  4. # Start on 4-GPU machine
  5. #for i in 0 1 2 3; do
  6. # t=ultralytics/yolov5:test && sudo docker pull $t && sudo docker run -d --ipc=host --gpus all -v "$(pwd)"/VOC:/usr/src/VOC $t bash utils/evolve.sh $i
  7. # sleep 60 # avoid simultaneous evolve.txt read/write
  8. #done
  9. # Hyperparameter evolution commands
  10. while true; do
  11. python train.py --batch 64 --weights yolov5m.pt --data voc.yaml --img 512 --epochs 50 --evolve --bucket ult/voc --device $1
  12. done