Skip to content

Commit

Permalink
Merge pull request #8 from Unimakers/dev
Browse files Browse the repository at this point in the history
Integrating  a tiny machine learning pipeline
  • Loading branch information
amaghzaz-y authored Dec 19, 2023
2 parents a752980 + 4d57c71 commit 9e92cd6
Show file tree
Hide file tree
Showing 810 changed files with 135,773 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "lib/tensorflow"]
path = lib/tensorflow
[submodule "lib/vendors/tensorflow"]
path = lib/vendors/tensorflow
url = https://github.com/espressif/esp-tflite-micro/
Binary file added dataset/blobs/plants/0.plant.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dataset/blobs/plants/11.plant.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dataset/blobs/plants/13.plant.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dataset/blobs/plants/15.plant.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dataset/blobs/plants/17.plant.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dataset/blobs/plants/19.plant.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dataset/blobs/plants/2.plant.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dataset/blobs/plants/22.plant.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dataset/blobs/plants/23.plant.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dataset/blobs/plants/25.plant.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dataset/blobs/plants/27.plant.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dataset/blobs/plants/28.plant.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dataset/blobs/plants/30.plant.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dataset/blobs/plants/31.plant.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dataset/blobs/plants/32.plant.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dataset/blobs/plants/33.plant.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dataset/blobs/plants/35.plant.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dataset/blobs/plants/37.plant.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dataset/blobs/plants/38.plant.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dataset/blobs/plants/4.plant.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dataset/blobs/plants/40.plant.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dataset/blobs/plants/42.plant.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dataset/blobs/plants/45.plant.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dataset/blobs/plants/46.plant.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dataset/blobs/plants/47.plant.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dataset/blobs/plants/6.plant.jpg
Binary file added dataset/blobs/plants/7.plant.jpg
Binary file added dataset/blobs/plants/9.plant.jpg
Binary file added dataset/blobs/pots/1.pot.jpg
Binary file added dataset/blobs/pots/10.pot.jpg
Binary file added dataset/blobs/pots/12.pot.jpg
Binary file added dataset/blobs/pots/14.pot.jpg
Binary file added dataset/blobs/pots/16.pot.jpg
Binary file added dataset/blobs/pots/18.pot.jpg
Binary file added dataset/blobs/pots/20.pot.jpg
Binary file added dataset/blobs/pots/21.pot.jpg
Binary file added dataset/blobs/pots/24.pot.jpg
Binary file added dataset/blobs/pots/26.pot.jpg
Binary file added dataset/blobs/pots/29.pot.jpg
Binary file added dataset/blobs/pots/3.pot.jpg
Binary file added dataset/blobs/pots/34.pot.jpg
Binary file added dataset/blobs/pots/36.pot.jpg
Binary file added dataset/blobs/pots/41.pot.jpg
Binary file added dataset/blobs/pots/44.pot.jpg
Binary file added dataset/blobs/pots/48.pot.jpg
Binary file added dataset/blobs/pots/49.pot.jpg
Binary file added dataset/blobs/pots/5.pot.jpg
Binary file added dataset/blobs/pots/50.pot.jpg
Binary file added dataset/blobs/pots/51.pot.jpg
Binary file added dataset/blobs/pots/52.pot.jpg
Binary file added dataset/blobs/pots/53.pot.jpg
Binary file added dataset/blobs/pots/54.pot.jpg
Binary file added dataset/blobs/pots/55.pot.jpg
Binary file added dataset/blobs/pots/56.pot.jpg
Binary file added dataset/blobs/pots/57.pot.jpg
Binary file added dataset/blobs/pots/58.pot.jpg
Binary file added dataset/blobs/pots/59.pot.jpg
Binary file added dataset/blobs/pots/60.pot.jpg
Binary file added dataset/blobs/pots/61.pot.jpg
Binary file added dataset/blobs/pots/62.pot.jpg
Binary file added dataset/blobs/pots/63.pot.jpg
Binary file added dataset/blobs/pots/64.pot.jpg
Binary file added dataset/blobs/pots/65.pot.jpg
Binary file added dataset/blobs/pots/66.pot.jpg
Binary file added dataset/blobs/pots/67.pot.jpg
Binary file added dataset/blobs/pots/68.pot.jpg
Binary file added dataset/blobs/pots/69.pot.jpg
Binary file added dataset/blobs/pots/70.pot.jpg
Binary file added dataset/blobs/pots/71.pot.jpg
Binary file added dataset/blobs/pots/72.pot.jpg
Binary file added dataset/blobs/pots/73.pot.jpg
Binary file added dataset/blobs/pots/8.pot.jpg
Binary file added dataset/raw/0_raw.jpg
Binary file added dataset/raw/10_raw.jpg
Binary file added dataset/raw/11_raw.jpg
Binary file added dataset/raw/12_raw.jpg
Binary file added dataset/raw/13_raw.jpg
Binary file added dataset/raw/14_raw.jpg
Binary file added dataset/raw/15_raw.jpg
Binary file added dataset/raw/16_raw.jpg
Binary file added dataset/raw/17_raw.jpg
Binary file added dataset/raw/18_raw.jpg
Binary file added dataset/raw/19_raw.jpg
Binary file added dataset/raw/1_raw.jpg
Binary file added dataset/raw/20_raw.jpg
Binary file added dataset/raw/21_raw.jpg
Binary file added dataset/raw/22_raw.jpg
Binary file added dataset/raw/23_raw.jpg
Binary file added dataset/raw/24_raw.jpg
Binary file added dataset/raw/25_raw.jpg
Binary file added dataset/raw/26_raw.jpg
Binary file added dataset/raw/27_raw.jpg
Binary file added dataset/raw/28_raw.jpg
Binary file added dataset/raw/29_raw.jpg
Binary file added dataset/raw/2_raw.jpg
Binary file added dataset/raw/30_raw.jpg
Binary file added dataset/raw/31_raw.jpg
Binary file added dataset/raw/32_raw.jpg
Binary file added dataset/raw/33_raw.jpg
Binary file added dataset/raw/34_raw.jpg
Binary file added dataset/raw/35_raw.jpg
Binary file added dataset/raw/36_raw.jpg
Binary file added dataset/raw/37_raw.jpg
Binary file added dataset/raw/38_raw.jpg
Binary file added dataset/raw/39_raw.jpg
Binary file added dataset/raw/3_raw.jpg
Binary file added dataset/raw/40_raw.jpg
Binary file added dataset/raw/41_raw.jpg
Binary file added dataset/raw/42_raw.jpg
Binary file added dataset/raw/43_raw.jpg
Binary file added dataset/raw/44_raw.jpg
Binary file added dataset/raw/45_raw.jpg
Binary file added dataset/raw/46_raw.jpg
Binary file added dataset/raw/47_raw.jpg
Binary file added dataset/raw/48_raw.jpg
Binary file added dataset/raw/49_raw.jpg
Binary file added dataset/raw/4_raw.jpg
Binary file added dataset/raw/50_raw.jpg
Binary file added dataset/raw/51_raw.jpg
Binary file added dataset/raw/52_raw.jpg
Binary file added dataset/raw/53_raw.jpg
Binary file added dataset/raw/5_raw.jpg
Binary file added dataset/raw/6_raw.jpg
Binary file added dataset/raw/7_raw.jpg
Binary file added dataset/raw/8_raw.jpg
Binary file added dataset/raw/9_raw.jpg
Binary file added dataset/yolov8/0.jpg
Binary file added dataset/yolov8/1.jpg
Binary file added dataset/yolov8/10.jpg
Binary file added dataset/yolov8/11.jpg
Binary file added dataset/yolov8/12.jpg
Binary file added dataset/yolov8/13.jpg
Binary file added dataset/yolov8/14.jpg
Binary file added dataset/yolov8/15.jpg
Binary file added dataset/yolov8/16.jpg
Binary file added dataset/yolov8/17.jpg
Binary file added dataset/yolov8/18.jpg
Binary file added dataset/yolov8/19.jpg
Binary file added dataset/yolov8/2.jpg
Binary file added dataset/yolov8/20.jpg
Binary file added dataset/yolov8/21.jpg
Binary file added dataset/yolov8/22.jpg
Binary file added dataset/yolov8/23.jpg
Binary file added dataset/yolov8/24.jpg
Binary file added dataset/yolov8/25.jpg
Binary file added dataset/yolov8/26.jpg
Binary file added dataset/yolov8/27.jpg
Binary file added dataset/yolov8/28.jpg
Binary file added dataset/yolov8/29.jpg
Binary file added dataset/yolov8/3.jpg
Binary file added dataset/yolov8/30.jpg
Binary file added dataset/yolov8/31.jpg
Binary file added dataset/yolov8/32.jpg
Binary file added dataset/yolov8/33.jpg
Binary file added dataset/yolov8/34.jpg
Binary file added dataset/yolov8/35.jpg
Binary file added dataset/yolov8/36.jpg
Binary file added dataset/yolov8/37.jpg
Binary file added dataset/yolov8/38.jpg
Binary file added dataset/yolov8/39.jpg
Binary file added dataset/yolov8/4.jpg
Binary file added dataset/yolov8/40.jpg
Binary file added dataset/yolov8/41.jpg
Binary file added dataset/yolov8/42.jpg
Binary file added dataset/yolov8/43.jpg
Binary file added dataset/yolov8/44.jpg
Binary file added dataset/yolov8/45.jpg
Binary file added dataset/yolov8/46.jpg
Binary file added dataset/yolov8/47.jpg
Binary file added dataset/yolov8/48.jpg
Binary file added dataset/yolov8/49.jpg
Binary file added dataset/yolov8/5.jpg
Binary file added dataset/yolov8/50.jpg
Binary file added dataset/yolov8/6.jpg
Binary file added dataset/yolov8/7.jpg
Binary file added dataset/yolov8/8.jpg
Binary file added dataset/yolov8/9.jpg
1 change: 0 additions & 1 deletion lib/tensorflow
Submodule tensorflow deleted from 9793fe
42 changes: 42 additions & 0 deletions lib/vendors/tensorflow/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# YAML schema for GitHub Actions:
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions
#
# Helpful YAML parser to clarify YAML syntax:
# https://yaml-online-parser.appspot.com/
#
#
# This file contains the workflows that are run periodically to build the examples.

name: CI

on: push

jobs:
build:
strategy:
matrix:
idf_ver: ["release-v4.2", "release-v4.3", "release-v4.4", "release-v5.0"]
idf_target: ["esp32"]
include:
- idf_ver: "release-v4.2"
idf_target: esp32s2
- idf_ver: "release-v4.3"
idf_target: esp32c3
- idf_ver: "release-v4.4"
idf_target: "esp32s3"
- idf_ver: "release-v5.0"
idf_target: "esp32c2"
runs-on: ubuntu-22.04
container: espressif/idf:${{ matrix.idf_ver }}
steps:
- uses: actions/checkout@v1
with:
submodules: recursive
- name: Build for ${{ matrix.idf_target }}
env:
IDF_TARGET: ${{ matrix.idf_target }}
shell: bash
working-directory: examples
run: |
. ${IDF_PATH}/export.sh
../scripts/build_examples.sh ${IDF_TARGET}
20 changes: 20 additions & 0 deletions lib/vendors/tensorflow/.github/workflows/issue_comment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Sync issue comments to JIRA

# This workflow will be triggered when new issue comment is created (including PR comments)
on: issue_comment

jobs:
sync_issue_comments_to_jira:
name: Sync Issue Comments to Jira
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Sync issue comments to JIRA
uses: espressif/github-actions/sync_issues_to_jira@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
JIRA_PASS: ${{ secrets.JIRA_PASS }}
JIRA_PROJECT: TFMIC
JIRA_COMPONENT: GitHub
JIRA_URL: ${{ secrets.JIRA_URL }}
JIRA_USER: ${{ secrets.JIRA_USER }}
20 changes: 20 additions & 0 deletions lib/vendors/tensorflow/.github/workflows/new_issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Sync issues to Jira

# This workflow will be triggered when a new issue is opened
on: issues

jobs:
sync_issues_to_jira:
name: Sync issues to Jira
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Sync GitHub issues to Jira project
uses: espressif/github-actions/sync_issues_to_jira@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
JIRA_PASS: ${{ secrets.JIRA_PASS }}
JIRA_PROJECT: TFMIC
JIRA_COMPONENT: GitHub
JIRA_URL: ${{ secrets.JIRA_URL }}
JIRA_USER: ${{ secrets.JIRA_USER }}
25 changes: 25 additions & 0 deletions lib/vendors/tensorflow/.github/workflows/new_prs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Sync remain PRs to Jira

# This workflow will be triggered every hour, to sync remaining PRs (i.e. PRs with zero comment) to Jira project
# Note that, PRs can also get synced when new PR comment is created
on:
schedule:
- cron: "0 * * * *"

jobs:
sync_prs_to_jira:
name: Sync PRs to Jira
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Sync PRs to Jira project
uses: espressif/github-actions/sync_issues_to_jira@master
with:
cron_job: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
JIRA_PASS: ${{ secrets.JIRA_PASS }}
JIRA_PROJECT: TFMIC
JIRA_COMPONENT: GitHub
JIRA_URL: ${{ secrets.JIRA_URL }}
JIRA_USER: ${{ secrets.JIRA_USER }}
19 changes: 19 additions & 0 deletions lib/vendors/tensorflow/.github/workflows/upload_component.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Upload component to IDF Component Registry

on:
push:
tags:
- v*

jobs:
upload_components:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Upload esp-tflite-micro
uses: espressif/upload-components-ci-action@v1
with:
namespace: "espressif"
name: "esp-tflite-micro"
version: ${{ github.ref_name }}
api_token: ${{ secrets.IDF_COMPONENT_API_TOKEN }}
13 changes: 13 additions & 0 deletions lib/vendors/tensorflow/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
build
managed_components
sdkconfig
sdkconfig.old
dependencies.lock
*.old
*.o
*.s
.DS_Store
*.orig
*.swp
*.out
*.lock
158 changes: 158 additions & 0 deletions lib/vendors/tensorflow/.gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
stages:
- pre-check
- build
- sync
- deploy

# Avoid running duplicate pipeline
workflow:
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'

variables:
GIT_STRATEGY: fetch
GIT_SUBMODULE_STRATEGY: recursive
SYNC_BRANCH_NAME: "ci/sync_gh_tflite-micro"
SYNC_COMMIT_MSG: "tflite-micro-sync: Update esp-tflite-micro (synced from github)"
REPO_URL: "https://${PUSH_TO_GITLAB_TOKEN_NAME}:${PUSH_TO_GITLAB_TOKEN}@gitlab.espressif.cn:6688/app-frameworks/tflite-micro-esp-examples.git"

pre-commit-mr:
stage: pre-check
image: "$CI_DOCKER_REGISTRY/pre-commit-codecheck:1"
before_script:
- echo "Skip common before script"
script:
- git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA | xargs pre-commit run --files
rules:
- if: '$CI_COMMIT_BRANCH == "master"'
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
tags: [build, internet]

include:
- project: espressif/shared-ci-dangerjs
ref: master
file: danger.yaml
run-danger-mr-linter:
before_script:
- echo "Skip common before script"
stage: pre-check
tags: [build, internet]

before_script:
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- echo -n $GITLAB_KEY_TMP > ~/.ssh/id_rsa_base64
- base64 --decode --ignore-garbage ~/.ssh/id_rsa_base64 > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
- echo -e "Host gitlab.espressif.cn\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config

.test_build: &test_build
# Build examples
- for TARGET in $EXAMPLE_TARGETS; do
- ./scripts/build_examples.sh $TARGET
- done

.build_template:
stage: build
image: espressif/idf:latest
tags:
- build
variables:
PEDANTIC_FLAGS: "-Werror -Wno-error=cpp -Werror=unused-variable -Werror=unused-but-set-variable -Werror=unused-function"
EXTRA_CFLAGS: "${PEDANTIC_FLAGS}"
EXTRA_CXXFLAGS: "${PEDANTIC_FLAGS}"
rules:
- if: '$CI_PIPELINE_SOURCE == "schedule"'
when: never
- when: always
script:
- cd ${CI_PROJECT_DIR}
# build examples
- *test_build
- cd ${CI_PROJECT_DIR}

build_idf_v5.1:
extends: .build_template
image: espressif/idf:release-v5.1
variables:
EXAMPLE_TARGETS: esp32 esp32s2 esp32s3 esp32c3 esp32c2

build_idf_v5.0:
extends: .build_template
image: espressif/idf:release-v5.0
variables:
EXAMPLE_TARGETS: esp32 esp32s3 esp32c3 esp32c2

build_idf_v4.4:
extends: .build_template
image: espressif/idf:release-v4.4
variables:
EXAMPLE_TARGETS: esp32 esp32s3 esp32c3

build_idf_v4.3:
extends: .build_template
image: espressif/idf:release-v4.3
variables:
EXAMPLE_TARGETS: esp32

build_idf_v4.2:
extends: .build_template
image: espressif/idf:release-v4.2
variables:
EXAMPLE_TARGETS: esp32

.push_to_gitlab: &push_to_gitlab
# Push updated repo (synced from github) to gitlab
- git config --global user.email "[email protected]"
- git config --global user.name "Gitlab-Scheduled-GH-Sync-Job"
- git remote set-url origin ${REPO_URL}
# check - remote branch should not exist (i.e. the open MR (if any) should be merged and branch should have been deleted)
- git ls-remote --exit-code --heads ${REPO_URL} ${SYNC_BRANCH_NAME} && echo "ERROR - ${SYNC_BRANCH_NAME} branch already exists. Is there any open MR ?" && exit 1
- git branch ${SYNC_BRANCH_NAME} 2>&1 || echo "Branch exists" && git branch -D ${SYNC_BRANCH_NAME} 2>&1 || echo "Branch deleted" && git branch ${SYNC_BRANCH_NAME} 2>&1 && echo "Branch created"
- git checkout ${SYNC_BRANCH_NAME}
- git add .
- git commit -m "${SYNC_COMMIT_MSG}"
- git push --set-upstream origin ${SYNC_BRANCH_NAME}
- git status
- git log -2
# The variable ${SYNC_BRANCH_NAME} is not getting set here (currently), so branch name is directly added for `source_branch` key
- curl --request POST --url "https://gitlab.espressif.cn:6688/api/v4/projects/2457/merge_requests" --header
"PRIVATE-TOKEN:${PUSH_TO_GITLAB_TOKEN}" --header "content-type:application/json" --data '{"title":"Sync esp-tflite-micro from github - '${CI_PIPELINE_ID}'", "source_branch":"ci/sync_gh_tflite-micro", "target_branch":"master" }'
- git checkout -

sync_from_github:on-schedule:
stage: sync
image: espressif/idf:release-v5.0
tags:
- sync
rules:
- if: '$CI_PIPELINE_SOURCE == "schedule" && $CI_COMMIT_BRANCH == "master"'
script:
# sync tflite-lib from github
- cd ${CI_PROJECT_DIR}
- echo "====================== Sync esp-tflite-micro from Github and push to Gitlab ======================"
- python3 -m pip install -r scripts/gh_sync_req.txt
- ./scripts/sync_from_tflite_micro.sh
# push to gitlab
- *push_to_gitlab
- echo "====================== Done ======================"

push_to_github:
stage: deploy
image: espressif/idf:release-v5.0
tags:
- deploy
when: manual
only:
- master
script:
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- echo -n $GH_KEY > ~/.ssh/id_rsa_base64
- base64 --decode --ignore-garbage ~/.ssh/id_rsa_base64 > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
- echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
- git remote remove github &>/dev/null || true
- git remote add github [email protected]:espressif/esp-tflite-micro.git
- git push github "${CI_COMMIT_SHA}:refs/heads/${CI_COMMIT_REF_NAME}"
Empty file.
41 changes: 41 additions & 0 deletions lib/vendors/tensorflow/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
---
minimum_pre_commit_version: 3.3.0
default_install_hook_types: [pre-commit,commit-msg]

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-executables-have-shebangs
- id: mixed-line-ending
args: ['-f=lf']
- id: double-quote-string-fixer

- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.0.280
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]

- repo: https://github.com/pycqa/isort
rev: 5.11.5
hooks:
- id: isort
name: isort (python)

- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.1.1' # Use the sha / tag you want to point at
hooks:
- id: mypy
additional_dependencies: []

- repo: https://github.com/espressif/conventional-precommit-linter
rev: v1.2.1
hooks:
- id: conventional-precommit-linter
stages: [commit-msg]
Loading

0 comments on commit 9e92cd6

Please sign in to comment.