tensorboard时候遇到问题记录

powershell中执行mnist_with_summaries.py时出错:
D:\work\AI\tensorflow-1.1.0\tensorflow\tensorflow\examples\tutorials\mnist> python .\mnist_with_summaries.py
Traceback (most recent call last):
File “.\mnist_with_summaries.py”, line 213, in
tf.app.run(main=main, argv=[sys.argv[0]] + unparsed)
File “C:\Users\00000\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\platform\app.py”, line 125, in run
_sys.exit(main(argv))
File “.\mnist_with_summaries.py”, line 185, in main
tf.gfile.MakeDirs(FLAGS.log_dir)
File “C:\Users\00000\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\lib\io\file_io.py”, line 379, in recursive_create_dir
pywrap_tensorflow.RecursivelyCreateDir(compat.as_bytes(dirname), status)
File “C:\Users\00000\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\framework\errors_impl.py”, line 526, in exit
c_api.TF_GetCode(self.status.status))
tensorflow.python.framework.errors_impl.NotFoundError: Failed to create a directory: /tmp\tensorflow; No such file or directory

查看源码发现:
log dir用的代码
default=os.path.join(os.getenv(‘TEST_TMPDIR’, ‘/tmp’),
‘tensorflow/mnist/logs/mnist_with_summaries’),
于时建立一个环境变量:TEST_TMPDIR,指定为D:\work\AI\datafolder_mike,
之后执行 python .\mnist_with_summaries.py成功,但有警告如下:

PS D:\work\AI\tensorflow-1.1.0\tensorflow\tensorflow\examples\tutorials\mnist> python .\mnist_with_summaries.py
WARNING:tensorflow:From .\mnist_with_summaries.py:41: read_data_sets (from tensorflow.contrib.learn.python.learn.datasets.mnist) is deprecated and will be removed in a future version.
Instructions for updating:
Please use alternatives such as official/mnist/dataset.py from tensorflow/models.
WARNING:tensorflow:From C:\Users\00000\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\contrib\learn\python\learn\datasets\mnist.py:260: maybe_download (from tensorflow.contrib.learn.python.learn.datasets.base) is deprecated and will be removed in a future version.
Instructions for updating:
Please write your own downloading logic.
WARNING:tensorflow:From C:\Users\00000\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\contrib\learn\python\learn\datasets\mnist.py:262: extract_images (from tensorflow.contrib.learn.python.learn.datasets.mnist) is deprecated and will be removed in a future version.
Instructions for updating:
Please use tf.data to implement this functionality.
Extracting D:\work\AI\datafolder_mike\tensorflow/mnist/input_data\train-images-idx3-ubyte.gz
WARNING:tensorflow:From C:\Users\00000\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\contrib\learn\python\learn\datasets\mnist.py:267: extract_labels (from tensorflow.contrib.learn.python.learn.datasets.mnist) is deprecated and will be removed in a future version.
Instructions for updating:
Please use tf.data to implement this functionality.
Extracting D:\work\AI\datafolder_mike\tensorflow/mnist/input_data\train-labels-idx1-ubyte.gz
Extracting D:\work\AI\datafolder_mike\tensorflow/mnist/input_data\t10k-images-idx3-ubyte.gz
Extracting D:\work\AI\datafolder_mike\tensorflow/mnist/input_data\t10k-labels-idx1-ubyte.gz
WARNING:tensorflow:From C:\Users\00000\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\contrib\learn\python\learn\datasets\mnist.py:290: DataSet.init (from tensorflow.contrib.learn.python.learn.datasets.mnist) is deprecated and will be removed in a future version.
Instructions for updating:
Please use alternatives such as official/mnist/dataset.py from tensorflow/models.
2018-10-17 13:26:55.203287: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2
Accuracy at step 0: 0.0866
Accuracy at step 10: 0.642
Accuracy at step 20: 0.8075
Accuracy at step 30: 0.8588
Accuracy at step 40: 0.879
Accuracy at step 50: 0.8878
Accuracy at step 60: 0.8949
Accuracy at step 70: 0.9018
Accuracy at step 80: 0.9084
Accuracy at step 90: 0.9081
Adding run metadata for 99
Accuracy at step 100: 0.9141
Accuracy at step 110: 0.9135
Accuracy at step 120: 0.9171
Accuracy at step 130: 0.9202
Accuracy at step 140: 0.9246
Accuracy at step 150: 0.9262
Accuracy at step 160: 0.9259
Accuracy at step 170: 0.9299
Accuracy at step 180: 0.9292
Accuracy at step 190: 0.9298
Adding run metadata for 199
Accuracy at step 200: 0.9303
Accuracy at step 210: 0.9317
Accuracy at step 220: 0.9332
Accuracy at step 230: 0.9337
Accuracy at step 240: 0.9307
Accuracy at step 250: 0.9354
Accuracy at step 260: 0.9395
Accuracy at step 270: 0.9411
Accuracy at step 280: 0.9394
Accuracy at step 290: 0.9411
Adding run metadata for 299
Accuracy at step 300: 0.9417
Accuracy at step 310: 0.9404
Accuracy at step 320: 0.9425
Accuracy at step 330: 0.9464
Accuracy at step 340: 0.9447
Accuracy at step 350: 0.9463
Accuracy at step 360: 0.9465
Accuracy at step 370: 0.9467
Accuracy at step 380: 0.9481
Accuracy at step 390: 0.9503
Adding run metadata for 399
Accuracy at step 400: 0.9512
Accuracy at step 410: 0.95
Accuracy at step 420: 0.951
Accuracy at step 430: 0.9517
Accuracy at step 440: 0.9527
Accuracy at step 450: 0.9528
Accuracy at step 460: 0.9522
Accuracy at step 470: 0.9517
Accuracy at step 480: 0.9529
Accuracy at step 490: 0.9521
Adding run metadata for 499
Accuracy at step 500: 0.9539
Accuracy at step 510: 0.9547
Accuracy at step 520: 0.9559
Accuracy at step 530: 0.9565
Accuracy at step 540: 0.9576
Accuracy at step 550: 0.9571
Accuracy at step 560: 0.9573
Accuracy at step 570: 0.9563
Accuracy at step 580: 0.9574
Accuracy at step 590: 0.9591
Adding run metadata for 599
Accuracy at step 600: 0.9602
Accuracy at step 610: 0.9595
Accuracy at step 620: 0.9619
Accuracy at step 630: 0.9606
Accuracy at step 640: 0.9612
Accuracy at step 650: 0.9618
Accuracy at step 660: 0.9605
Accuracy at step 670: 0.9579
Accuracy at step 680: 0.9599
Accuracy at step 690: 0.9604
Adding run metadata for 699
Accuracy at step 700: 0.9619
Accuracy at step 710: 0.9605
Accuracy at step 720: 0.9619
Accuracy at step 730: 0.9604
Accuracy at step 740: 0.9643
Accuracy at step 750: 0.9629
Accuracy at step 760: 0.961
Accuracy at step 770: 0.9595
Accuracy at step 780: 0.9616
Accuracy at step 790: 0.9633
Adding run metadata for 799
Accuracy at step 800: 0.9636
Accuracy at step 810: 0.9651
Accuracy at step 820: 0.9653
Accuracy at step 830: 0.9668
Accuracy at step 840: 0.9655
Accuracy at step 850: 0.9644
Accuracy at step 860: 0.9629
Accuracy at step 870: 0.9668
Accuracy at step 880: 0.9628
Accuracy at step 890: 0.9631
Adding run metadata for 899
Accuracy at step 900: 0.9659
Accuracy at step 910: 0.968
Accuracy at step 920: 0.9663
Accuracy at step 930: 0.967
Accuracy at step 940: 0.9671
Accuracy at step 950: 0.9685
Accuracy at step 960: 0.9662
Accuracy at step 970: 0.9677
Accuracy at step 980: 0.9639
Accuracy at step 990: 0.9661
Adding run metadata for 999

在这个基础上执行:
tensorboard --logdir D:\work\AI\datafolder_mike\tensorflow\mnist\logs\mnist_with_summaries
结果显示:
TensorBoard 1.11.0 at http://LAPTOP-FNATVOA1:6006 (Press CTRL+C to quit)

在ie中打开上述链接,提示错误:
W1017 15:09:27.278187 Thread-6 application.py:300] path /[[_traceDataUrl]] not found, sending 404
W1017 15:09:27.278187 20276 application.py:300] path /[[_traceDataUrl]] not found, sending 404
W1017 15:09:30.512951 Thread-7 application.py:300] path /[[getImageSrc(feat.name)]] not found, sending 404
W1017 15:09:30.512951 12264 application.py:300] path /[[getImageSrc(feat.name)]] not found, sending 404
W1017 15:09:30.512951 Thread-8 application.py:300] path /[[getCompareImageSrc(feat.name)]] not found, sending 404
W1017 15:09:30.512951 17536 application.py:300] path /[[getCompareImageSrc(feat.name)]] not found, sending 404
W1017 15:09:30.512951 Thread-9 application.py:300] path /[[getSeqImageSrc(seqfeat.name, seqNumber)]] not found, sending 404
W1017 15:09:30.512951 13984 application.py:300] path /[[getSeqImageSrc(seqfeat.name, seqNumber)]] not found, sending 404
W1017 15:09:30.556948 Thread-9 application.py:300] path /[[getCompareSeqImageSrc(seqfeat.name, seqNumber)]] not found, sending 404
W1017 15:09:30.556948 13984 application.py:300] path /[[getCompareSeqImageSrc(seqfeat.name, seqNumber)]] not found, sending 404

需要在IE edge或chrome中打开才可,在edge中打开如下,不知是否正确:
tensorboard界面安装了chrome浏览器后可以了,

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/m0_37605956/article/details/83110094