-
-
Notifications
You must be signed in to change notification settings - Fork 15.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create evolve.sh for infinite hyp evolution
- Loading branch information
1 parent
a8751e5
commit 8666bc5
Showing
1 changed file
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
# Hyperparameter evolution commands (avoids CUDA memory leakage issues) | ||
# Replaces train.py python generations 'for' loop with a bash 'for' loop | ||
|
||
# Start on 4-GPU machine | ||
#for i in 0 1 2 3; do | ||
# 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 | ||
# sleep 60 # avoid simultaneous evolve.txt read/write | ||
#done | ||
|
||
# Hyperparameter evolution commands | ||
while true; do | ||
python train.py --batch 64 --weights yolov5m.pt --data voc.yaml --img 512 --epochs 50 --evolve --bucket ult/voc --device $1 | ||
done |