Xilinx / Vitis-AI

Vitis AI is Xilinx’s development stack for AI inference on Xilinx hardware platforms, including both edge devices and Alveo cards.
https://www.xilinx.com/ai
Apache License 2.0
1.44k stars 626 forks source link

Vitis AI Compiler has no extra option "quant_cfgfile". #151

Closed lllkiller-jlll closed 3 years ago

lllkiller-jlll commented 4 years ago

Hi.

I'm trying to use own model on Alveo U250 accelerator card.

I saw (https://github.com/Xilinx/Vitis-AI/blob/master/alveo/examples/caffe/run.py) and I made deploy.prototxt, deploy.caffemodel, and quantize_info.txt successfully.

Finally, I input vai_c_caffe command but I faced the error message below:

`


My command was : vai_c_caffe --prototxt quantize/deploy.prototxt --caffemodel quantize/deploy.caffemodel --output_dir compile/ --net_name tmp --arch /opt/vitis_ai/compiler/arch/dpuv1/ALVEO/ALVEO.json --options {"quant_cfgfile":"quantize/quantize_info.txt"}

What did I miss?

Thanks.

sumitn-xilinx commented 3 years ago

Can you try following: vai_c_caffe --prototxt quantize/deploy.prototxt --caffemodel quantize/deploy.caffemodel --output_dir compile/ --net_name tmp --arch /opt/vitis_ai/compiler/arch/DPUCADX8G/ALVEO/arch.json --options "{'quant_cfgfile':'quantize/quantize_info.txt'}"

Are you using the latest version of run.py?

lllkiller-jlll commented 3 years ago

Hi sumitn.

I succeed convert custom model for DPUv1.

Thank you very much!

I'll close this issue.