19 lines
417 B
Bash
Executable File
19 lines
417 B
Bash
Executable File
#!/bin/bash
|
|
# 多输入 Caffe 模型一键转换: load → quantize → add_pre_post → export
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")"
|
|
|
|
echo "=== 加载模型 ==="
|
|
netrans load . --mean 0 0 0 --std 1.0
|
|
|
|
echo "=== 量化 ==="
|
|
netrans quantize . asymu8
|
|
|
|
echo "=== 集成前后处理 ==="
|
|
netrans add_pre_post . asymu8 --preprocess --postprocess
|
|
|
|
echo "=== 导出 NBG ==="
|
|
netrans export . asymu8
|
|
|
|
echo "=== 完成 ==="
|