-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (38 loc) · 1.52 KB
/
integration_test.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
name: DetectTrack
on:
push:
branches: [ main, action ]
pull_request:
branches: [ main, action ]
jobs:
# This workflow contains a single job called "build"
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: '3.10'
architecture: 'x64'
- name: apt-get
run: sudo apt-get update -y && sudo apt-get install wget unzip ffmpeg -y
- name: Install
run: pip3 install --upgrade -r requirements.txt && pip3 install -e .
- name: Small train
run: python3 train.py --train_steps 3 --nframes=5 --kpoints=11 --npca=3 --size=64 --nworms_pca=25 --nworms=5,10 --batch_size=4 --clip_duration=0.2 --eval_interval=2 --latent_dim=2
- name: Download video
run: wget https://sid.erda.dk/share_redirect/GVDAVHOZLN -O video.mp4
- name: Download weights
run: wget https://sid.erda.dk/share_redirect/cEjIpG1yQl -O weights.zip && unzip weights.zip
- name: Detect
run: python3 examples/detect.py --model=weights/ --input=video.mp4 --output=output.png --frame=12 --correction_factor=1.2
- name: Track
run: python3 examples/track.py --model=weights/ --input=video.mp4 --output=track/ --correction_factor=1.2 --num_batches=1
- name: Store artefacts
uses: actions/upload-artifact@v3
with:
name: detect-track-output
path: |
output.png
tracking.mp4