|
| 1 | +name: Test Run Examples |
| 2 | + |
| 3 | +on: |
| 4 | + workflow_dispatch: |
| 5 | + schedule: |
| 6 | + - cron: '0 16 * * *' # Trigger at 4PM every day |
| 7 | + |
| 8 | +jobs: |
| 9 | + test-quick-dataset-analysis: |
| 10 | + runs-on: ${{ matrix.os }} |
| 11 | + env: |
| 12 | + SENTRY_OPT_OUT: True |
| 13 | + strategy: |
| 14 | + matrix: |
| 15 | + os: [ubuntu-22.04] |
| 16 | + python-version: ['3.9'] |
| 17 | + steps: |
| 18 | + - name: Checkout repository |
| 19 | + uses: actions/checkout@v3 |
| 20 | + with: |
| 21 | + fetch-depth: 0 |
| 22 | + |
| 23 | + - name: Set up Python |
| 24 | + uses: actions/setup-python@v3 |
| 25 | + with: |
| 26 | + python-version: ${{ matrix.python-version }} |
| 27 | + |
| 28 | + - name: Install dependencies |
| 29 | + run: | |
| 30 | + python -m pip install --upgrade pip |
| 31 | + pip install fastdup matplotlib |
| 32 | +
|
| 33 | + - name: Download dataset |
| 34 | + run: | |
| 35 | + wget "https://thor.robots.ox.ac.uk/~vgg/data/pets/images.tar.gz" -O "images.tar.gz" |
| 36 | + tar xf "images.tar.gz" |
| 37 | +
|
| 38 | + - name: Run example |
| 39 | + run: | |
| 40 | + python .github/workflows/tests/quick_dataset_analysis.py |
| 41 | + |
| 42 | + - name: Save artifacts |
| 43 | + uses: actions/upload-artifact@v3 |
| 44 | + with: |
| 45 | + name: fastdup_work_dir_quick_dataset_analysis |
| 46 | + path: fastdup_work_dir/ |
| 47 | + |
| 48 | + test-cleaning-image-dataset: |
| 49 | + runs-on: ${{ matrix.os }} |
| 50 | + env: |
| 51 | + SENTRY_OPT_OUT: True |
| 52 | + strategy: |
| 53 | + matrix: |
| 54 | + os: [ubuntu-latest] |
| 55 | + python-version: ['3.9'] |
| 56 | + steps: |
| 57 | + - name: Checkout repository |
| 58 | + uses: actions/checkout@v3 |
| 59 | + with: |
| 60 | + fetch-depth: 0 |
| 61 | + |
| 62 | + - name: Set up Python |
| 63 | + uses: actions/setup-python@v3 |
| 64 | + with: |
| 65 | + python-version: ${{ matrix.python-version }} |
| 66 | + |
| 67 | + - name: Install dependencies |
| 68 | + run: | |
| 69 | + python -m pip install --upgrade pip |
| 70 | + pip install fastdup matplotlib |
| 71 | +
|
| 72 | + - name: Download dataset |
| 73 | + run: | |
| 74 | + wget http://data.vision.ee.ethz.ch/cvl/food-101.tar.gz |
| 75 | + tar -xf food-101.tar.gz |
| 76 | +
|
| 77 | + - name: Run example |
| 78 | + run: | |
| 79 | + python .github/workflows/tests/cleaning_image_dataset.py |
| 80 | + |
| 81 | + - name: Save artifacts |
| 82 | + uses: actions/upload-artifact@v3 |
| 83 | + with: |
| 84 | + name: fastdup_work_dir_cleaning_image_dataset |
| 85 | + path: fastdup_work_dir/ |
| 86 | + |
| 87 | + test-labeled-image-classification: |
| 88 | + runs-on: ${{ matrix.os }} |
| 89 | + env: |
| 90 | + SENTRY_OPT_OUT: True |
| 91 | + strategy: |
| 92 | + matrix: |
| 93 | + os: [ubuntu-latest] |
| 94 | + python-version: ['3.9'] |
| 95 | + steps: |
| 96 | + - name: Checkout repository |
| 97 | + uses: actions/checkout@v3 |
| 98 | + with: |
| 99 | + fetch-depth: 0 |
| 100 | + |
| 101 | + - name: Set up Python |
| 102 | + uses: actions/setup-python@v3 |
| 103 | + with: |
| 104 | + python-version: ${{ matrix.python-version }} |
| 105 | + |
| 106 | + - name: Install dependencies |
| 107 | + run: | |
| 108 | + python -m pip install --upgrade pip |
| 109 | + pip install fastdup matplotlib |
| 110 | +
|
| 111 | + - name: Download dataset |
| 112 | + run: | |
| 113 | + wget https://s3.amazonaws.com/fast-ai-imageclas/imagenette2-160.tgz |
| 114 | + tar -xf imagenette2-160.tgz |
| 115 | +
|
| 116 | + - name: Run example |
| 117 | + run: | |
| 118 | + python .github/workflows/tests/labeled_image_classification.py |
| 119 | + |
| 120 | + - name: Save artifacts |
| 121 | + uses: actions/upload-artifact@v3 |
| 122 | + with: |
| 123 | + name: fastdup_work_dir_labeled_image_classification |
| 124 | + path: fastdup_work_dir/ |
| 125 | + |
| 126 | + test-labeled-object-detection: |
| 127 | + runs-on: ${{ matrix.os }} |
| 128 | + env: |
| 129 | + SENTRY_OPT_OUT: True |
| 130 | + strategy: |
| 131 | + matrix: |
| 132 | + os: [ubuntu-latest] |
| 133 | + python-version: ['3.9'] |
| 134 | + steps: |
| 135 | + - name: Checkout repository |
| 136 | + uses: actions/checkout@v3 |
| 137 | + with: |
| 138 | + fetch-depth: 0 |
| 139 | + |
| 140 | + - name: Set up Python |
| 141 | + uses: actions/setup-python@v3 |
| 142 | + with: |
| 143 | + python-version: ${{ matrix.python-version }} |
| 144 | + |
| 145 | + - name: Install dependencies |
| 146 | + run: | |
| 147 | + python -m pip install --upgrade pip |
| 148 | + pip install fastdup fastdup plotly gdown |
| 149 | +
|
| 150 | + - name: Download dataset |
| 151 | + run: | |
| 152 | + gdown --fuzzy https://drive.google.com/file/d/1iSXVTlkV1_DhdYpVDqsjlT4NJFQ7OkyK/view |
| 153 | + unzip -qq coco_minitrain_25k.zip |
| 154 | + cd coco_minitrain_25k/annotations && gdown --fuzzy https://drive.google.com/file/d/1i12p23cXlqp1QrXjAD_vu467r4q67Mq9/view |
| 155 | +
|
| 156 | + - name: Run example |
| 157 | + run: | |
| 158 | + python .github/workflows/tests/labeled_object_detection.py |
| 159 | + |
| 160 | + - name: Save artifacts |
| 161 | + uses: actions/upload-artifact@v3 |
| 162 | + with: |
| 163 | + name: fastdup_work_dir_labeled_object_detection |
| 164 | + path: fastdup_work_dir/ |
0 commit comments