Skip to content

Commit

Permalink
Updates for ml model creation process
Browse files Browse the repository at this point in the history
  • Loading branch information
prabhuomkar committed Mar 9, 2024
1 parent ded158a commit 1143931
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 18 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ jobs:
working-directory: ./api
steps:
- name: Git Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup Golang
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: '^1.21'
- name: Go Version
run: go version
- name: Run Lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v4
with:
version: v1.56.0
working-directory: api
Expand All @@ -55,18 +55,18 @@ jobs:
working-directory: ./api
steps:
- name: Git Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Docker Build and Push
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: api
file: ./api/Dockerfile
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/ml.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:
working-directory: ./ml
steps:
- name: Git Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.10.x'
- name: Python Version
Expand All @@ -28,8 +28,8 @@ jobs:
make all
zip -r models.zip classification/*.pt faces/*.pt ocr/cls_onnx ocr/det_onnx ocr/rec_onnx search/*.pt search/search_processor search/search_tokenizer
- name: Create release asset
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
files: |
models.zip
ml/models.zip
12 changes: 6 additions & 6 deletions .github/workflows/worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
working-directory: ./worker
steps:
- name: Git Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
Expand Down Expand Up @@ -57,18 +57,18 @@ jobs:
working-directory: ./worker
steps:
- name: Git Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Docker Build and Push
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: worker
file: ./worker/Dockerfile
Expand Down
1 change: 1 addition & 0 deletions ml/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ fastdeploy-python
opencv-python==4.9.0.80
paddle2onnx==1.1.0
pillow==10.2.0
six==1.16.0
torch==2.2.0
torchvision==0.17.0
transformers==4.37.2
Expand Down
1 change: 1 addition & 0 deletions ml/search/pytorch.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""ML Search HuggingFace Model"""
import os
import sys

from PIL import Image
Expand Down

0 comments on commit 1143931

Please sign in to comment.