
python
fzu_zhengbinchen
福州大学硕士研究生
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
tensorflow模型ckpt转pb和测试推理
import cv2import tensorflow as tffrom tensorflow.python.framework import graph_utildef freeze_graph(input_checkpoint ,output_graph): ''' :param input_checkpoint: :param output_graph: PB模型保存路径 :return: ''' with tf.name_scope('.原创 2020-10-12 21:57:30 · 1125 阅读 · 0 评论 -
Pyinstaller进行文件打包
安装pyinstallerpip install pyinstaller也可以使用whl文件进行安装。pyinstaller基本用法以打包demo.py为例,基本过程如下:打开cmd,并切换到demo.py文件所在的目录,注意路径下不要有中文;执行命令:pyinstaller demo.py在当前的目录下,将会生成两个文件夹:build和dist。dist里面就...原创 2020-04-20 09:38:56 · 340 阅读 · 0 评论