-
Notifications
You must be signed in to change notification settings - Fork 34
35 lines (33 loc) · 2.03 KB
/
workflows.yml
File metadata and controls
35 lines (33 loc) · 2.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: tengine-convert-tools-actions
on: [push, pull_request]
jobs:
linux-gcc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: system-update
run: sudo apt-get update
- name: install-protobuf
run: sudo apt-get install libprotobuf-dev protobuf-compiler
- name: configure
run: mkdir build && cd build && cmake ..
- name: build
run: cmake --build build -j 2
- name: models
run: |
cd build
git clone https://github.com/BUG1989/tengine_test_data.git
- name: test-models-convert
run: |
cd build
./tools/convert_tool -f caffe -p ./tengine_test_data/mssd.prototxt -m ./tengine_test_data/mssd.caffemodel -o mssd_caffe.tmfile
./tools/convert_tool -f caffe -p ./tengine_test_data/mobilenet_v2.prototxt -m ./tengine_test_data/mobilenet_v2.caffemodel -o mobilenet_v2_caffe.tmfile
./tools/convert_tool -f caffe -p ./tengine_test_data/retinaface.prototxt -m ./tengine_test_data/retinaface.caffemodel -o retinaface_caffe.tmfile
./tools/convert_tool -f mxnet -p ./tengine_test_data/retinaface.json -m ./tengine_test_data/retinaface.params -o retinaface_mx.tmfile
./tools/convert_tool -f onnx -m ./tengine_test_data/squeezenet.onnx -o squeezenet_onnx.tmfile
./tools/convert_tool -f onnx -m ./tengine_test_data/mobilenetv2-sim.onnx -o mobilenetv2_onnx.tmfile
./tools/convert_tool -f onnx -m ./tengine_test_data/shufflenetv2.onnx -o shufflenetv2_onnx.tmfile
./tools/convert_tool -f tflite -m ./tengine_test_data/mobilenet_v2.tflite -o mobilenet_v2_tflite.tmfile
./tools/convert_tool -f darknet -p ./tengine_test_data/yolov4-tiny.cfg -m ./tengine_test_data/yolov4-tiny.weights -o yolov4-tiny.tmfile
./tools/convert_tool -f darknet -p ./tengine_test_data/yolo-fastest-1.1.cfg -m ./tengine_test_data/yolo-fastest-1.1.weights -o yolo-fastest-1.1.tmfile
./tools/convert_tool -f paddle -p ./tengine_test_data/inference.pdmodel -m ./tengine_test_data/inference.pdiparams -o mobilenetv2_paddle.tmfile