mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-11 02:52:18 +00:00
upload rknn model files
This commit is contained in:
parent
f8f7d01c6c
commit
59431e0eb3
66
.github/workflows/rknn.yml
vendored
66
.github/workflows/rknn.yml
vendored
@ -4,7 +4,7 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
- ci-rknn
|
- ci-rknn-2
|
||||||
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
@ -90,55 +90,27 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
ls -lh rknn-models/*
|
ls -lh rknn-models/*
|
||||||
|
|
||||||
- name: Install rknn
|
- uses: actions/upload-artifact@v4
|
||||||
if: false
|
with:
|
||||||
shell: bash
|
name: rk3562
|
||||||
run: |
|
path: ./rknn-models/rk3562/*
|
||||||
ls
|
|
||||||
curl -SL -O https://huggingface.co/csukuangfj/rknn-toolkit2/resolve/main/rknn_toolkit2-2.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
|
|
||||||
pip install ./*.whl "numpy<=1.26.4"
|
|
||||||
pip list | grep rknn
|
|
||||||
echo "---"
|
|
||||||
pip list
|
|
||||||
echo "---"
|
|
||||||
|
|
||||||
- name: Run
|
|
||||||
if: false
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
ls
|
|
||||||
python3 -c "import sys; from rknn.api import RKNN; print(dir(RKNN))"
|
|
||||||
|
|
||||||
git clone --depth 1 https://github.com/airockchip/rknn_model_zoo/
|
|
||||||
cd rknn_model_zoo/examples/zipformer
|
|
||||||
cd model
|
|
||||||
ls -lh
|
|
||||||
chmod +x ./download_model.sh
|
|
||||||
./download_model.sh
|
|
||||||
ls -lh
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
cd python
|
|
||||||
python3 ./convert.py ../model/encoder-epoch-99-avg-1.onnx rk3588
|
|
||||||
|
|
||||||
ls -lh ../model
|
|
||||||
|
|
||||||
python3 convert.py ../model/decoder-epoch-99-avg-1.onnx rk3588
|
|
||||||
|
|
||||||
ls -lh ../model
|
|
||||||
|
|
||||||
python3 convert.py ../model/joiner-epoch-99-avg-1.onnx rk3588
|
|
||||||
|
|
||||||
ls -lh ../model
|
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
if: false
|
|
||||||
with:
|
with:
|
||||||
name: rknn-files
|
name: rk3566
|
||||||
path: ./rknn_model_zoo/examples/zipformer/model/*.rknn
|
path: ./rknn-models/rk3566/*
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
if: false
|
|
||||||
with:
|
with:
|
||||||
name: onnx-files
|
name: rk3568
|
||||||
path: ./rknn_model_zoo/examples/zipformer/model/*.onnx
|
path: ./rknn-models/rk3568/*
|
||||||
|
|
||||||
|
- uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: rk3576
|
||||||
|
path: ./rknn-models/rk3576/*
|
||||||
|
|
||||||
|
- uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: rk3588
|
||||||
|
path: ./rknn-models/rk3588/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user