Unverified Commit a74b573c authored by narugo1992's avatar narugo1992 Committed by GitHub
Browse files

Merge pull request #131 from deepghs/dev/preprocess

dev(narugo): add dynamic preprocessors for generic image preprocessor
parents 6b2397ef 3e51c6ad
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -46,6 +46,7 @@ jobs:
          python -m pip install -r requirements.txt
          python -m pip install -r requirements-model.txt
          python -m pip install -r requirements-doc.txt
          python -m pip install -r requirements-torchvision.txt
      - name: Prepare dataset
        uses: nick-fields/retry@v2
        if: ${{ github.event_name == 'push' }}
+2 −2
Original line number Diff line number Diff line
@@ -57,7 +57,7 @@ jobs:
          ls -al ./${{ matrix.model-name }}
          zip -r ${{ matrix.model-name }}.zip ${{ matrix.model-name }}
      - name: Upload the character databases
        uses: actions/upload-artifact@v3
        uses: actions/upload-artifact@v4
        with:
          name: onnx-models
          path: ${{ matrix.model-name }}.zip
@@ -84,7 +84,7 @@ jobs:
          git clone https://huggingface.co/deepghs/imgutils-models
          ls -al imgutils-models
      - name: Download from artifact
        uses: actions/download-artifact@v3
        uses: actions/download-artifact@v4
        with:
          name: onnx-models
          path: imgutils-models
+1 −1
Original line number Diff line number Diff line
@@ -38,7 +38,7 @@ jobs:
          make package
          ls -al dist
      - name: Upload packed files to artifacts
        uses: actions/upload-artifact@v3
        uses: actions/upload-artifact@v4
        with:
          name: build-artifacts-source-pack
          path: ./dist/*
+15 −2
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@ on:

jobs:
  unittest:
    name: Code test
    name: Test
    runs-on: ${{ matrix.os }}
    if: ${{ !contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'test skip') }}
    strategy:
@@ -22,6 +22,14 @@ jobs:
          - '3.10'
          - '3.11'
          - '3.12'
        install:
          - 'full'
          - 'simple'
        exclude:
          - os: 'windows-latest'
            install: 'simple'
          - os: 'macos-latest'
            install: 'simple'

    steps:
      - name: Get system version for Linux
@@ -86,8 +94,13 @@ jobs:
          python -m pip install --upgrade pip
          pip install --upgrade flake8 setuptools wheel twine
          pip install -r requirements.txt
          pip install -r requirements-model.txt
          pip install -r requirements-test.txt
      - name: Install full dependencies
        shell: bash
        if: ${{ matrix.install == 'full' }}
        run: |
          pip install -r requirements-model.txt
          pip install -r requirements-torchvision.txt
      - name: Test the basic environment
        shell: bash
        run: |
+14 −0
Original line number Diff line number Diff line
imgutils.preprocess.base
===========================================

.. currentmodule:: imgutils.preprocess.base

.. automodule:: imgutils.preprocess.base


NotParseTarget
-----------------------------

.. autoclass:: NotParseTarget

Loading