-
Notifications
You must be signed in to change notification settings - Fork 8
51 lines (43 loc) · 1.26 KB
/
json2yolov5.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
name: JSON to YOLOv5 (data preprocessing)
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v3
with:
python-version: "3.8"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
python -m pip install -e .
- name: Run json2yolov5.py
env:
TOKEN: ${{ secrets.TOKEN }}
LS_HOST: ${{ secrets.LS_HOST }}
DB_NAME: ${{ secrets.DB_NAME }}
DB_CONNECTION_STRING: ${{ secrets.DB_CONNECTION_STRING }}
EXCLUDE_LABELS: ${{ secrets.EXCLUDE_LABELS }}
S3_ENDPOINT: ${{ secrets.S3_ENDPOINT }}
S3_ACCESS_KEY: ${{ secrets.S3_ACCESS_KEY }}
S3_SECRET_KEY: ${{ secrets.S3_SECRET_KEY }}
S3_REGION: ${{ secrets.S3_REGION }}
run: |
python birdfsd_yolov5/preprocessing/json2yolov5.py --filter-rare-classes 20
- name: 'Upload Artifact'
uses: actions/upload-artifact@v3
with:
name: artifacts
path: |
tasks.json
classes.json
dataset-YOLO*.tar
retention-days: 30