|
|
@@ -16,12 +16,12 @@ if [ ! -d yolov5 ]; then |
|
|
|
else |
|
|
|
echo "Running re-start script." # resume interrupted runs |
|
|
|
i=0 |
|
|
|
list=$(docker ps -qa) # container list i.e. $'one\ntwo\nthree\nfour' |
|
|
|
list=$(sudo docker ps -qa) # container list i.e. $'one\ntwo\nthree\nfour' |
|
|
|
while IFS= read -r id; do |
|
|
|
((i++)) |
|
|
|
echo "restarting container $i: $id" |
|
|
|
docker start $id |
|
|
|
# docker exec -it $id python train.py --resume # single-GPU |
|
|
|
docker exec -d $id python utils/aws/resume.py |
|
|
|
sudo docker start $id |
|
|
|
# sudo docker exec -it $id python train.py --resume # single-GPU |
|
|
|
sudo docker exec -d $id python utils/aws/resume.py # multi-scenario |
|
|
|
done <<<"$list" |
|
|
|
fi |