轉換TensorFlow 的PB 模型到 UFF格式

1,使用aws dlami 啓動一個實例html

2,source activate tensorflow_p36linux

3,下載TensorRT 的 tar 安裝文件,參考 https://docs.nvidia.com/deeplearning/sdk/tensorrt-archived/tensorrt-515/tensorrt-install-guide/index.html#installing-taride

4,$ tar xzvf TensorRT-5.1.x.x.<os>.<arch>-gnu.cuda-x.x.cudnn7.x.tar.gzui

5,$ ls TensorRT-5.1.x.xcode

6,export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<eg:TensorRT-5.1.x.x/lib>htm

7,pip install tensorrt-5.1.x.x-cp3x-none-linux_x86_64.whlblog

8,cd TensorRT-5.1.x.x/uffip

9,pip install uff-0.6.3-py2.py3-none-any.whlget

10,which convert-to-uffinput

11,cd TensorRT-5.1.x.x/graphsurgeon

12, pip install graphsurgeon-0.4.1-py2.py3-none-any.whl

13,convert-to-uff input_file

 

 

相關文章
相關標籤/搜索