forked from charlesxzb/model-zoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rnet.mlir.config.yaml
53 lines (48 loc) · 1.59 KB
/
rnet.mlir.config.yaml
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
---
name: mtcnn_rnet
gops: [0.003, 0.012]
shapes:
- [1, 3, 24, 24]
- [4, 3, 24, 24]
mlir_transform:
model_transform.py
--model_name $(name)
--model_def $(home)/det2.prototxt
--model_data $(home)/det2.caffemodel
--test_input $(root)/dataset/samples/stock_market.jpg
--input_shapes [$(shape_param)]
--test_result $(name)_top_outputs.npz
--mlir $(workdir)/$(name).mlir
deploy:
- model_deploy.py --mlir $(workdir)/$(name).mlir
--quantize F32
--chip $(target)
--test_input $(workdir)/$(name)_in_f32.npz
--test_reference $(name)_top_outputs.npz
--tolerance 0.99,0.99
--model $(workdir)/$(name)_$(target)_f32.bmodel
- model_deploy.py --mlir $(workdir)/$(name).mlir
--quantize INT8
--calibration_table $(home)/det2_cali_table
--quant_input
--quant_output
--chip $(target)
--test_input $(workdir)/$(name)_in_f32.npz
--test_reference $(name)_top_outputs.npz
--model $(workdir)/$(name)_$(target)_int8_sym.bmodel
BM1684X:
+deploy:
- model_deploy.py --mlir $(workdir)/$(name).mlir
--quantize F16
--chip $(target)
--test_input $(workdir)/$(name)_in_f32.npz
--test_reference $(name)_top_outputs.npz
--tolerance 0.95,0.85
--model $(workdir)/$(name)_bm1684x_f16.bmodel
- model_deploy.py --mlir $(workdir)/$(name).mlir
--quantize BF16
--chip $(target)
--test_input $(workdir)/$(name)_in_f32.npz
--test_reference $(name)_top_outputs.npz
--tolerance 0.95,0.85
--model $(workdir)/$(name)_bm1684x_bf16.bmodel