W0817 19:30:05.384836 17892 deprecation.py:323] From D:\python37\lib\site-packages\tensorflow\python\ops\image_ops_impl.py:1514: div (from tensorflow.python.ops.math_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Deprecated in favor of operator or tf.math.divide.
W0817 19:30:05.387852 17892 deprecation_wrapper.py:119] From F:\cat_vs_dog\logs\model.py:6: The name tf.variable_scope is deprecated. Please use tf.compat.v1.variable_scope instead.
W0817 19:30:05.388820 17892 deprecation_wrapper.py:119] From F:\cat_vs_dog\logs\model.py:8: The name tf.get_variable is deprecated. Please use tf.compat.v1.get_variable instead.
W0817 19:30:05.388820 17892 deprecation.py:506] From F:\cat_vs_dog\logs\model.py:11: calling TruncatedNormal.__init__ (from tensorflow.python.ops.init_ops) with dtype is deprecated and will be removed in a future version.
Instructions for updating:
Call initializer instance with the dtype argument instead of passing it to the constructor
W0817 19:30:05.454674 17892 deprecation_wrapper.py:119] From F:\cat_vs_dog\logs\model.py:21: The name tf.nn.max_pool is deprecated. Please use tf.nn.max_pool2d instead.
W0817 19:30:05.579311 17892 deprecation_wrapper.py:119] From F:/cat_vs_dog/logs/evaluateCatOrDog.py:75: The name tf.placeholder is deprecated. Please use tf.compat.v1.placeholder instead.
W0817 19:30:05.581307 17892 deprecation_wrapper.py:119] From F:/cat_vs_dog/logs/evaluateCatOrDog.py:83: The name tf.train.Saver is deprecated. Please use tf.compat.v1.train.Saver instead.
W0817 19:30:05.626190 17892 deprecation_wrapper.py:119] From F:/cat_vs_dog/logs/evaluateCatOrDog.py:85: The name tf.Session is deprecated. Please use tf.compat.v1.Session instead.
2019-08-17 19:30:05.677043: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2
从指定的路径中加载模型。。。。
模型加载失败,,,文件没有找到
Traceback (most recent call last):
File "D:\python37\lib\site-packages\tensorflow\python\client\session.py", line 1356, in _do_call
return fn(*args)
File "D:\python37\lib\site-packages\tensorflow\python\client\session.py", line 1341, in _run_fn
options, feed_dict, fetch_list, target_list, run_metadata)
File "D:\python37\lib\site-packages\tensorflow\python\client\session.py", line 1429, in _call_tf_sessionrun
run_metadata)
tensorflow.python.framework.errors_impl.FailedPreconditionError: Attempting to use uninitialized value local4/weights
[[{{node local4/weights/read}}]]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "F:/cat_vs_dog/logs/evaluateCatOrDog.py", line 124, in <module>
evaluate_one_image()
File "F:/cat_vs_dog/logs/evaluateCatOrDog.py", line 107, in evaluate_one_image
prediction = sess.run(logit, feed_dict={x: image_array})
File "D:\python37\lib\site-packages\tensorflow\python\client\session.py", line 950, in run
run_metadata_ptr)
File "D:\python37\lib\site-packages\tensorflow\python\client\session.py", line 1173, in _run
feed_dict_tensor, options, run_metadata)
File "D:\python37\lib\site-packages\tensorflow\python\client\session.py", line 1350, in _do_run
run_metadata)
File "D:\python37\lib\site-packages\tensorflow\python\client\session.py", line 1370, in _do_call
raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.FailedPreconditionError: Attempting to use uninitialized value local4/weights
[[node local4/weights/read (defined at F:\cat_vs_dog\logs\model.py:60) ]]

Instructions for updating:
Deprecated in favor of operator or tf.math.divide.
W0817 19:30:05.387852 17892 deprecation_wrapper.py:119] From F:\cat_vs_dog\logs\model.py:6: The name tf.variable_scope is deprecated. Please use tf.compat.v1.variable_scope instead.
W0817 19:30:05.388820 17892 deprecation_wrapper.py:119] From F:\cat_vs_dog\logs\model.py:8: The name tf.get_variable is deprecated. Please use tf.compat.v1.get_variable instead.
W0817 19:30:05.388820 17892 deprecation.py:506] From F:\cat_vs_dog\logs\model.py:11: calling TruncatedNormal.__init__ (from tensorflow.python.ops.init_ops) with dtype is deprecated and will be removed in a future version.
Instructions for updating:
Call initializer instance with the dtype argument instead of passing it to the constructor
W0817 19:30:05.454674 17892 deprecation_wrapper.py:119] From F:\cat_vs_dog\logs\model.py:21: The name tf.nn.max_pool is deprecated. Please use tf.nn.max_pool2d instead.
W0817 19:30:05.579311 17892 deprecation_wrapper.py:119] From F:/cat_vs_dog/logs/evaluateCatOrDog.py:75: The name tf.placeholder is deprecated. Please use tf.compat.v1.placeholder instead.
W0817 19:30:05.581307 17892 deprecation_wrapper.py:119] From F:/cat_vs_dog/logs/evaluateCatOrDog.py:83: The name tf.train.Saver is deprecated. Please use tf.compat.v1.train.Saver instead.
W0817 19:30:05.626190 17892 deprecation_wrapper.py:119] From F:/cat_vs_dog/logs/evaluateCatOrDog.py:85: The name tf.Session is deprecated. Please use tf.compat.v1.Session instead.
2019-08-17 19:30:05.677043: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2
从指定的路径中加载模型。。。。
模型加载失败,,,文件没有找到
Traceback (most recent call last):
File "D:\python37\lib\site-packages\tensorflow\python\client\session.py", line 1356, in _do_call
return fn(*args)
File "D:\python37\lib\site-packages\tensorflow\python\client\session.py", line 1341, in _run_fn
options, feed_dict, fetch_list, target_list, run_metadata)
File "D:\python37\lib\site-packages\tensorflow\python\client\session.py", line 1429, in _call_tf_sessionrun
run_metadata)
tensorflow.python.framework.errors_impl.FailedPreconditionError: Attempting to use uninitialized value local4/weights
[[{{node local4/weights/read}}]]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "F:/cat_vs_dog/logs/evaluateCatOrDog.py", line 124, in <module>
evaluate_one_image()
File "F:/cat_vs_dog/logs/evaluateCatOrDog.py", line 107, in evaluate_one_image
prediction = sess.run(logit, feed_dict={x: image_array})
File "D:\python37\lib\site-packages\tensorflow\python\client\session.py", line 950, in run
run_metadata_ptr)
File "D:\python37\lib\site-packages\tensorflow\python\client\session.py", line 1173, in _run
feed_dict_tensor, options, run_metadata)
File "D:\python37\lib\site-packages\tensorflow\python\client\session.py", line 1350, in _do_run
run_metadata)
File "D:\python37\lib\site-packages\tensorflow\python\client\session.py", line 1370, in _do_call
raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.FailedPreconditionError: Attempting to use uninitialized value local4/weights
[[node local4/weights/read (defined at F:\cat_vs_dog\logs\model.py:60) ]]
