AWS wait && echo "All tasks done." (#2391)
Browse files- utils/aws/userdata.sh +2 -1
utils/aws/userdata.sh
CHANGED
@@ -11,7 +11,8 @@ if [ ! -d yolov5 ]; then
|
|
11 |
cd yolov5
|
12 |
bash data/scripts/get_coco.sh && echo "Data done." &
|
13 |
sudo docker pull ultralytics/yolov5:latest && echo "Docker done." &
|
14 |
-
|
|
|
15 |
else
|
16 |
echo "Running re-start script." # resume interrupted runs
|
17 |
i=0
|
|
|
11 |
cd yolov5
|
12 |
bash data/scripts/get_coco.sh && echo "Data done." &
|
13 |
sudo docker pull ultralytics/yolov5:latest && echo "Docker done." &
|
14 |
+
python -m pip install --upgrade pip && pip install -r requirements.txt && python detect.py && echo "Requirements done." &
|
15 |
+
wait && echo "All tasks done." # finish background tasks
|
16 |
else
|
17 |
echo "Running re-start script." # resume interrupted runs
|
18 |
i=0
|