glenn-jocher commited on
Commit
5414e53
1 Parent(s): a91cdd2

update ci-testing.yml with on: cron (#572)

Browse files

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>

.github/workflows/ci-testing.yml CHANGED
@@ -1,7 +1,10 @@
1
  name: CI CPU testing
2
 
3
- # see: https://help.github.com/en/actions/reference/events-that-trigger-workflows
4
- on: [push, pull_request]
 
 
 
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
- - uses: actions/checkout@v2
21
- - name: Set up Python ${{ matrix.python-version }}
22
- uses: actions/setup-python@v2
23
- with:
24
- python-version: ${{ matrix.python-version }}
25
 
26
- # Note: This uses an internal pip API and may not always work
27
- # https://github.com/actions/cache/blob/master/examples.md#multiple-oss-in-a-workflow
28
- - name: Get pip cache
29
- id: pip-cache
30
- run: |
31
- python -c "from pip._internal.locations import USER_CACHE_DIR; print('::set-output name=dir::' + USER_CACHE_DIR)"
32
 
33
- - name: Cache pip
34
- uses: actions/cache@v1
35
- with:
36
- path: ${{ steps.pip-cache.outputs.dir }}
37
- key: ${{ runner.os }}-${{ matrix.python-version }}-pip-${{ hashFiles('requirements.txt') }}
38
- restore-keys: |
39
- ${{ runner.os }}-${{ matrix.python-version }}-pip-
40
 
41
- - name: Install dependencies
42
- run: |
43
- python -m pip install --upgrade pip
44
- pip install -qr requirements.txt -f https://download.pytorch.org/whl/cpu/torch_stable.html
45
- pip install -q onnx
46
- python --version
47
- pip --version
48
- pip list
49
- shell: bash
50
 
51
- - name: Download data
52
- run: |
53
- python -c "from utils.google_utils import * ; gdrive_download('1n_oKgR81BJtqk75b00eAjdv03qVCQn2f', 'coco128.zip')"
54
- mv ./coco128 ../
55
 
56
- - name: Tests workflow
57
- run: |
58
- export PYTHONPATH="$PWD" # to run *.py. files in subdirectories
59
- di=cpu # inference devices # define device
60
-
61
- # train
62
- python train.py --img 256 --batch 8 --weights weights/${{ matrix.model }}.pt --cfg models/${{ matrix.model }}.yaml --epochs 1 --device $di
63
- # detect
64
- python detect.py --weights weights/${{ matrix.model }}.pt --device $di
65
- python detect.py --weights runs/exp0/weights/last.pt --device $di
66
- # test
67
- python test.py --img 256 --batch 8 --weights weights/${{ matrix.model }}.pt --device $di
68
- python test.py --img 256 --batch 8 --weights runs/exp0/weights/last.pt --device $di
69
-
70
- python models/yolo.py --cfg models/${{ matrix.model }}.yaml # inspect
71
- python models/export.py --img 256 --batch 1 --weights weights/${{ matrix.model }}.pt # export
72
- shell: bash
 
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
- - 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.
 
 
 
 
 
 
 
 
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
- - 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'
 
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'