一、问题 官网下载Python2.7(python-2.7.13.msi),安装后启动提示错误,ImportError: No module named site 二、解决 1、这个问题是Python环境变量错误引起的,一般是之前安装过Python,卸载后没把环境变量去掉。 2、或者安装Python时选择了最下面一项,把Pthon加入环境变量,但它默认设置PYTHONHOME=C:\Python27,但...【阅读全文】
import os # We'll render HTML templates and access data sent by POST # using the request object from flask. Redirect and url_for # will be used to redirect the user once the upload is done # and send_from_directory will help us to send/show on the # browser the file that the user just uploaded from ...【阅读全文】
生成检查点文件(chekpoint file),扩展名.ckpt,tf.train.Saver对象调用Saver.save()生成。包含权重和其他程序定义变量,不包含图结构。另一程序使用,需要重新创建图形结构,告诉TensorFlow如何处理权重。生成图协议文件(graph proto file),二进制文件,扩展名.pb,tf.tran.write_graph()保存,只包含图形结构,不包含权...【阅读全文】