convert_trt.sh 462 Bytes
Newer Older
helloyongyang's avatar
helloyongyang committed
1
2
#!/bin/bash
export PYTHONPATH="./":$PYTHONPATH
3
# onnx_path=""
helloyongyang's avatar
helloyongyang committed
4
# trtexec \
5
#     --onnx=${onnx_path} \
helloyongyang's avatar
helloyongyang committed
6
7
8
9
10
11
12
13
14
#     --saveEngine="./vae_decoder_hf_sim.engine" \
#     --allowWeightStreaming \
#     --stronglyTyped \
#     --fp16 \
#     --weightStreamingBudget=100 \
#     --minShapes=inp:1x16x9x18x16 \
#     --optShapes=inp:1x16x17x32x16 \
#     --maxShapes=inp:1x16x17x32x32

15
16
model_path=""
python examples/vae_trt/convert_vae_trt_engine.py --model_path ${model_path}