update ci-testing.yml with on: cron (#572)
Browse filesSigned-off-by: Glenn Jocher <[email protected]>
- .github/workflows/ci-testing.yml +53 -50
- .github/workflows/greetings.yml +25 -25
- .github/workflows/stale.yml +9 -9
.github/workflows/ci-testing.yml
CHANGED
@@ -1,7 +1,10 @@
|
|
1 |
name: CI CPU testing
|
2 |
|
3 |
-
#
|
4 |
-
|
|
|
|
|
|
|
5 |
|
6 |
jobs:
|
7 |
cpu-tests:
|
@@ -17,56 +20,56 @@ jobs:
|
|
17 |
# Timeout: https://stackoverflow.com/a/59076067/4521646
|
18 |
timeout-minutes: 50
|
19 |
steps:
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
|
|
1 |
name: CI CPU testing
|
2 |
|
3 |
+
on: # https://help.github.com/en/actions/reference/events-that-trigger-workflows
|
4 |
+
push:
|
5 |
+
pull_request:
|
6 |
+
schedule:
|
7 |
+
- cron: "0 0 * * *"
|
8 |
|
9 |
jobs:
|
10 |
cpu-tests:
|
|
|
20 |
# Timeout: https://stackoverflow.com/a/59076067/4521646
|
21 |
timeout-minutes: 50
|
22 |
steps:
|
23 |
+
- uses: actions/checkout@v2
|
24 |
+
- name: Set up Python ${{ matrix.python-version }}
|
25 |
+
uses: actions/setup-python@v2
|
26 |
+
with:
|
27 |
+
python-version: ${{ matrix.python-version }}
|
28 |
|
29 |
+
# Note: This uses an internal pip API and may not always work
|
30 |
+
# https://github.com/actions/cache/blob/master/examples.md#multiple-oss-in-a-workflow
|
31 |
+
- name: Get pip cache
|
32 |
+
id: pip-cache
|
33 |
+
run: |
|
34 |
+
python -c "from pip._internal.locations import USER_CACHE_DIR; print('::set-output name=dir::' + USER_CACHE_DIR)"
|
35 |
|
36 |
+
- name: Cache pip
|
37 |
+
uses: actions/cache@v1
|
38 |
+
with:
|
39 |
+
path: ${{ steps.pip-cache.outputs.dir }}
|
40 |
+
key: ${{ runner.os }}-${{ matrix.python-version }}-pip-${{ hashFiles('requirements.txt') }}
|
41 |
+
restore-keys: |
|
42 |
+
${{ runner.os }}-${{ matrix.python-version }}-pip-
|
43 |
|
44 |
+
- name: Install dependencies
|
45 |
+
run: |
|
46 |
+
python -m pip install --upgrade pip
|
47 |
+
pip install -qr requirements.txt -f https://download.pytorch.org/whl/cpu/torch_stable.html
|
48 |
+
pip install -q onnx
|
49 |
+
python --version
|
50 |
+
pip --version
|
51 |
+
pip list
|
52 |
+
shell: bash
|
53 |
|
54 |
+
- name: Download data
|
55 |
+
run: |
|
56 |
+
python -c "from utils.google_utils import * ; gdrive_download('1n_oKgR81BJtqk75b00eAjdv03qVCQn2f', 'coco128.zip')"
|
57 |
+
mv ./coco128 ../
|
58 |
|
59 |
+
- name: Tests workflow
|
60 |
+
run: |
|
61 |
+
export PYTHONPATH="$PWD" # to run *.py. files in subdirectories
|
62 |
+
di=cpu # inference devices # define device
|
63 |
+
|
64 |
+
# train
|
65 |
+
python train.py --img 256 --batch 8 --weights weights/${{ matrix.model }}.pt --cfg models/${{ matrix.model }}.yaml --epochs 1 --device $di
|
66 |
+
# detect
|
67 |
+
python detect.py --weights weights/${{ matrix.model }}.pt --device $di
|
68 |
+
python detect.py --weights runs/exp0/weights/last.pt --device $di
|
69 |
+
# test
|
70 |
+
python test.py --img 256 --batch 8 --weights weights/${{ matrix.model }}.pt --device $di
|
71 |
+
python test.py --img 256 --batch 8 --weights runs/exp0/weights/last.pt --device $di
|
72 |
+
|
73 |
+
python models/yolo.py --cfg models/${{ matrix.model }}.yaml # inspect
|
74 |
+
python models/export.py --img 256 --batch 1 --weights weights/${{ matrix.model }}.pt # export
|
75 |
+
shell: bash
|
.github/workflows/greetings.yml
CHANGED
@@ -6,30 +6,30 @@ jobs:
|
|
6 |
greeting:
|
7 |
runs-on: ubuntu-latest
|
8 |
steps:
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
If this is a bug report, please provide screenshots and **minimum viable code to reproduce your issue**, otherwise we can not help you.
|
29 |
-
|
30 |
-
If this is a custom model or data training question, please note Ultralytics does **not** provide free personal support. As a leader in vision ML and AI, we do offer professional consulting, from simple expert advice up to delivery of fully customized, end-to-end production solutions for our clients, such as:
|
31 |
-
- **Cloud-based AI** systems operating on **hundreds of HD video streams in realtime.**
|
32 |
-
- **Edge AI** integrated into custom iOS and Android apps for realtime **30 FPS video inference.**
|
33 |
-
- **Custom data training**, hyperparameter evolution, and model exportation to any destination.
|
34 |
|
35 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
greeting:
|
7 |
runs-on: ubuntu-latest
|
8 |
steps:
|
9 |
+
- uses: actions/first-interaction@v1
|
10 |
+
with:
|
11 |
+
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
12 |
+
pr-message: |
|
13 |
+
Hello @${{ github.actor }}, thank you for submitting a PR! To allow your work to be integrated as seamlessly as possible, we advise you to:
|
14 |
+
- Verify your PR is **up-to-date with origin/master.** If your PR is behind origin/master update by running the following, replacing 'feature' with the name of your local branch:
|
15 |
+
```bash
|
16 |
+
git remote add upstream https://github.com/ultralytics/yolov5.git
|
17 |
+
git fetch upstream
|
18 |
+
git checkout feature # <----- replace 'feature' with local branch name
|
19 |
+
git rebase upstream/master
|
20 |
+
git push -u origin -f
|
21 |
+
```
|
22 |
+
- Verify all Continuous Integration (CI) **checks are passing**.
|
23 |
+
- Reduce changes to the absolute **minimum** required for your bug fix or feature addition. _"It is not daily increase but daily decrease, hack away the unessential. The closer to the source, the less wastage there is."_ -Bruce Lee
|
24 |
|
25 |
+
issue-message: |
|
26 |
+
Hello @${{ github.actor }}, thank you for your interest in our work! Please visit our [Custom Training Tutorial](https://github.com/ultralytics/yolov5/wiki/Train-Custom-Data) to get started, and see our [Jupyter Notebook](https://github.com/ultralytics/yolov5/blob/master/tutorial.ipynb) <a href="https://colab.research.google.com/github/ultralytics/yolov5/blob/master/tutorial.ipynb"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"></a>, [Docker Image](https://hub.docker.com/r/ultralytics/yolov5), and [Google Cloud Quickstart Guide](https://github.com/ultralytics/yolov5/wiki/GCP-Quickstart) for example environments.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
|
28 |
+
If this is a bug report, please provide screenshots and **minimum viable code to reproduce your issue**, otherwise we can not help you.
|
29 |
+
|
30 |
+
If this is a custom model or data training question, please note Ultralytics does **not** provide free personal support. As a leader in vision ML and AI, we do offer professional consulting, from simple expert advice up to delivery of fully customized, end-to-end production solutions for our clients, such as:
|
31 |
+
- **Cloud-based AI** systems operating on **hundreds of HD video streams in realtime.**
|
32 |
+
- **Edge AI** integrated into custom iOS and Android apps for realtime **30 FPS video inference.**
|
33 |
+
- **Custom data training**, hyperparameter evolution, and model exportation to any destination.
|
34 |
+
|
35 |
+
For more information please visit https://www.ultralytics.com.
|
.github/workflows/stale.yml
CHANGED
@@ -1,17 +1,17 @@
|
|
1 |
name: Close stale issues
|
2 |
on:
|
3 |
schedule:
|
4 |
-
|
5 |
|
6 |
jobs:
|
7 |
stale:
|
8 |
runs-on: ubuntu-latest
|
9 |
steps:
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
|
|
1 |
name: Close stale issues
|
2 |
on:
|
3 |
schedule:
|
4 |
+
- cron: "0 0 * * *"
|
5 |
|
6 |
jobs:
|
7 |
stale:
|
8 |
runs-on: ubuntu-latest
|
9 |
steps:
|
10 |
+
- uses: actions/stale@v1
|
11 |
+
with:
|
12 |
+
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
13 |
+
stale-issue-message: 'This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.'
|
14 |
+
stale-pr-message: 'This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.'
|
15 |
+
days-before-stale: 30
|
16 |
+
days-before-close: 5
|
17 |
+
exempt-issue-label: 'documentation,tutorial'
|