-
Notifications
You must be signed in to change notification settings - Fork 77
164 lines (139 loc) · 4.42 KB
/
examples-ci.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
name: Test Run Examples
on:
workflow_dispatch:
schedule:
- cron: '0 16 * * *' # Trigger at 4PM every day
jobs:
test-quick-dataset-analysis:
runs-on: ${{ matrix.os }}
env:
SENTRY_OPT_OUT: True
strategy:
matrix:
os: [ubuntu-22.04]
python-version: ['3.9']
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install fastdup matplotlib
- name: Download dataset
run: |
wget "https://thor.robots.ox.ac.uk/~vgg/data/pets/images.tar.gz" -O "images.tar.gz"
tar xf "images.tar.gz"
- name: Run example
run: |
python .github/workflows/tests/quick_dataset_analysis.py
- name: Save artifacts
uses: actions/upload-artifact@v3
with:
name: fastdup_work_dir_quick_dataset_analysis
path: fastdup_work_dir/
test-cleaning-image-dataset:
runs-on: ${{ matrix.os }}
env:
SENTRY_OPT_OUT: True
strategy:
matrix:
os: [ubuntu-latest]
python-version: ['3.9']
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install fastdup matplotlib
- name: Download dataset
run: |
wget http://data.vision.ee.ethz.ch/cvl/food-101.tar.gz
tar -xf food-101.tar.gz
- name: Run example
run: |
python .github/workflows/tests/cleaning_image_dataset.py
- name: Save artifacts
uses: actions/upload-artifact@v3
with:
name: fastdup_work_dir_cleaning_image_dataset
path: fastdup_work_dir/
test-labeled-image-classification:
runs-on: ${{ matrix.os }}
env:
SENTRY_OPT_OUT: True
strategy:
matrix:
os: [ubuntu-latest]
python-version: ['3.9']
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install fastdup matplotlib
- name: Download dataset
run: |
wget https://s3.amazonaws.com/fast-ai-imageclas/imagenette2-160.tgz
tar -xf imagenette2-160.tgz
- name: Run example
run: |
python .github/workflows/tests/labeled_image_classification.py
- name: Save artifacts
uses: actions/upload-artifact@v3
with:
name: fastdup_work_dir_labeled_image_classification
path: fastdup_work_dir/
test-labeled-object-detection:
runs-on: ${{ matrix.os }}
env:
SENTRY_OPT_OUT: True
strategy:
matrix:
os: [ubuntu-latest]
python-version: ['3.9']
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install fastdup fastdup plotly gdown
- name: Download dataset
run: |
gdown --fuzzy https://drive.google.com/file/d/1iSXVTlkV1_DhdYpVDqsjlT4NJFQ7OkyK/view
unzip -qq coco_minitrain_25k.zip
cd coco_minitrain_25k/annotations && gdown --fuzzy https://drive.google.com/file/d/1i12p23cXlqp1QrXjAD_vu467r4q67Mq9/view
- name: Run example
run: |
python .github/workflows/tests/labeled_object_detection.py
- name: Save artifacts
uses: actions/upload-artifact@v3
with:
name: fastdup_work_dir_labeled_object_detection
path: fastdup_work_dir/