qq_Beloved意中人_0
weixin_慕函数4185725
是uint8,不是
weixin_慕仙1597413
你用谷歌浏览器打开看看
WSlearn
qq_莫非
是的嘞
qq_莫非
对应一下版本是不是不一样呀
合山川
你问题解决了吗 我也遇到同样的问题
HuangStra
qq_格格BLUE_0
S扶摇S
解决了吗? 我的输出一个矩阵, 结果显示不到web页面上
jjboy
WARNING:tensorflow:From D:/Python/workspace/Pybasis/minist/Handwritten_digit_main.py:11: The name tf.train.Saver is deprecated. Please use tf.compat.v1.train.Saver instead.WARNING:tensorflow:From D:\Python\Anaconda3\lib\site-packages\tensorflow\python\training\saver.py:1276: checkpoint_exists (from tensorflow.python.training.checkpoint_management) is deprecated and will be removed in a future version.Instructions for updating:Use standard file APIs to check for files with this prefix.Traceback (most recent call last): File "D:/Python/workspace/Pybasis/minist/Handwritten_digit_main.py", line 12, in <module> saver.restore(sess,"data/regression.ckpt") File "D:\Python\Anaconda3\lib\site-packages\tensorflow\python\training\saver.py", line 1278, in restore compat.as_text(save_path))ValueError: The passed save_path is not a valid checkpoint: data/regression.ckptProcess finished with exit code 1
慕斯卡7306075
换成这样试试 if __name__ == '__main__': app.debug=True app.run(host='127.0.0.1', port=8000)
snapspider
训练出来的结果那么高 为什么web页面上的结果那么差 怎么回事
好久不见_小程
哭出声,我出来的结果里还有负值
阿小庆
慕标5055955
1你肯定是把model和regression写在一起了没有注释后面的运行部分
2host改为127.0.0.1
qq_ykaleo_gqrY38
https://github.com/byerHu/mnist_web
慕瓜8118008
app.run(host='127.0.0.1', port=9000)
这样就可以了
蓝鳍鱼
慕雪7705910
貌似找到原因了,因为aconda里面的host不对,你改成我这个试试。
再也不上QQ鸟
main.js和jquery.min.js都放在js文件夹下
yichenqs
tensorflow
的bug
# saver.restore(sess,"mnist/data/regression.ckpt")
#换成
tf.train.latest_checkpoint('mnist / data / regression.ckpt')
慕的地9175261
qq_守护_34
https://github.com/sugyan/tensorflow-mnist
慕移动2445652
这里是TensorFlow的一个新bug
把
saver.restore(sess,"./mnist/data/convolutional.ckpt")
改成
module_file = tf.train.latest_checkpoint('mnist/data/convolutional.ckpt')
with tf.Session() as sess:
sess.run(tf.global_variables_initializer())
if module_file is not None:
saver.restore(sess, module_file)就可以了
qq_云和山的彼端_03804151
不用了谢谢
梦无涯1978
如果感觉老师讲的还不错,可以到评论区给老师一个好评