|
| 1 | +name: Test for the downloads of calibration datasets |
| 2 | +on: |
| 3 | + pull_request: |
| 4 | + branches: [ "master", "dev" ] |
| 5 | + paths: |
| 6 | + - vision/classification_and_detection/** |
| 7 | + - language/** |
| 8 | + - recommendation/** |
| 9 | + - .github/workflows/test-calibration-downloads.yml |
| 10 | + - '!**.md' |
| 11 | + |
| 12 | +env: |
| 13 | + PR_HEAD_REF: ${{ github.event.pull_request.head.ref }} |
| 14 | + |
| 15 | +jobs: |
| 16 | + download-imagenet: |
| 17 | + runs-on: ubuntu-latest |
| 18 | + strategy: |
| 19 | + fail-fast: false |
| 20 | + matrix: |
| 21 | + python-version: [ "3.9" ] |
| 22 | + |
| 23 | + steps: |
| 24 | + - uses: actions/checkout@v4 |
| 25 | + - name: Set up Python ${{ matrix.python-version }} |
| 26 | + uses: actions/setup-python@v3 |
| 27 | + with: |
| 28 | + python-version: ${{ matrix.python-version }} |
| 29 | + - name: Install dependencies |
| 30 | + run: | |
| 31 | + python3 -m pip install mlc-scripts |
| 32 | + - name: Download Imagenet Calibration |
| 33 | + run: | |
| 34 | + mlcr get,dataset,imagenet,_calibration --outdirname=. --quiet |
| 35 | +
|
| 36 | + download-openimages: |
| 37 | + runs-on: ubuntu-latest |
| 38 | + strategy: |
| 39 | + fail-fast: false |
| 40 | + matrix: |
| 41 | + python-version: [ "3.9" ] |
| 42 | + |
| 43 | + steps: |
| 44 | + - uses: actions/checkout@v4 |
| 45 | + - name: Set up Python ${{ matrix.python-version }} |
| 46 | + uses: actions/setup-python@v3 |
| 47 | + with: |
| 48 | + python-version: ${{ matrix.python-version }} |
| 49 | + - name: Install dependencies |
| 50 | + run: | |
| 51 | + python3 -m pip install mlc-scripts |
| 52 | + - name: Download Openimages Calibration |
| 53 | + run: | |
| 54 | + mlcr get,dataset,openimages,_calibration --outdirname=. --quiet |
| 55 | +
|
| 56 | + download-igbh: |
| 57 | + runs-on: ubuntu-latest |
| 58 | + strategy: |
| 59 | + fail-fast: false |
| 60 | + matrix: |
| 61 | + python-version: [ "3.9" ] |
| 62 | + |
| 63 | + steps: |
| 64 | + - uses: actions/checkout@v4 |
| 65 | + - name: Set up Python ${{ matrix.python-version }} |
| 66 | + uses: actions/setup-python@v3 |
| 67 | + with: |
| 68 | + python-version: ${{ matrix.python-version }} |
| 69 | + - name: Install dependencies |
| 70 | + run: | |
| 71 | + python3 -m pip install mlc-scripts |
| 72 | + # - name: Download IGBH Calibration |
| 73 | + # run: | |
| 74 | + # mlcr get,dataset,igbh,_calibration --outdirname=. --quiet |
| 75 | + |
| 76 | + download-squad: |
| 77 | + runs-on: ubuntu-latest |
| 78 | + strategy: |
| 79 | + fail-fast: false |
| 80 | + matrix: |
| 81 | + python-version: [ "3.9" ] |
| 82 | + |
| 83 | + steps: |
| 84 | + - uses: actions/checkout@v4 |
| 85 | + - name: Set up Python ${{ matrix.python-version }} |
| 86 | + uses: actions/setup-python@v3 |
| 87 | + with: |
| 88 | + python-version: ${{ matrix.python-version }} |
| 89 | + - name: Install dependencies |
| 90 | + run: | |
| 91 | + python3 -m pip install mlc-scripts |
| 92 | + - name: Download SQUAD Calibration |
| 93 | + run: | |
| 94 | + mlcr get,dataset,squad,_calib1 --outdirname=. --quiet |
0 commit comments