question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Tensorflow new version lots of deprecations

See original GitHub issue

WARNING: Logging before flag parsing goes to stderr. W0624 15:31:08.865480 14340 deprecation_wrapper.py:119] From c:\users\user\temp\envs\maskrcnn6\lib\site-packages\keras\backend\tensorflow_backend.py:517: The name tf.placeholder is deprecated. Please use tf.compat.v1.placeholder instead.

W0624 15:31:08.883394 14340 deprecation_wrapper.py:119] From c:\users\user\temp\envs\maskrcnn6\lib\site-packages\keras\backend\tensorflow_backend.py:74: The name tf.get_default_graph is deprecated. Please use tf.compat.v1.get_default_graph instead.

W0624 15:31:08.887409 14340 deprecation_wrapper.py:119] From c:\users\user\temp\envs\maskrcnn6\lib\site-packages\keras\backend\tensorflow_backend.py:4138: The name tf.random_uniform is deprecated. Please use tf.random.uniform instead.

W0624 15:31:08.906373 14340 deprecation_wrapper.py:119] From c:\users\user\temp\envs\maskrcnn6\lib\site-packages\keras\backend\tensorflow_backend.py:1919: The name tf.nn.fused_batch_norm is deprecated. Please use tf.compat.v1.nn.fused_batch_norm instead.

W0624 15:31:08.909325 14340 deprecation_wrapper.py:119] From c:\users\user\temp\envs\maskrcnn6\lib\site-packages\keras\backend\tensorflow_backend.py:3976: The name tf.nn.max_pool is deprecated. Please use tf.nn.max_pool2d instead.

W0624 15:31:10.804918 14340 deprecation_wrapper.py:119] From c:\users\user\temp\envs\maskrcnn6\lib\site-packages\keras\backend\tensorflow_backend.py:2018: The name tf.image.resize_nearest_neighbor is deprecated. Please use tf.compat.v1.image.resize_nearest_neighbor instead.

W0624 15:31:11.136994 14340 deprecation_wrapper.py:119] From C:\Users\user\Mask1\Mask_RCNN\mrcnn\model.py:341: The name tf.log is deprecated. Please use tf.math.log instead.

W0624 15:31:11.143975 14340 deprecation.py:323] From C:\Users\user\Mask1\Mask_RCNN\mrcnn\model.py:399: add_dispatch_support.<locals>.wrapper (from tensorflow.python.ops.array_ops) is deprecated and will be removed in a future version. Instructions for updating: Use tf.where in 2.0, which has the same broadcast rule as np.where W0624 15:31:11.148962 14340 deprecation.py:506] From C:\Users\user\Mask1\Mask_RCNN\mrcnn\model.py:423: calling crop_and_resize_v1 (from tensorflow.python.ops.image_ops_impl) with box_ind is deprecated and will be removed in a future version. Instructions for updating: box_ind is deprecated, use box_indices instead W0624 15:31:11.327487 14340 deprecation_wrapper.py:119] From C:\Users\user\Mask1\Mask_RCNN\mrcnn\model.py:720: The name tf.sets.set_intersection is deprecated. Please use tf.sets.intersection instead.

W0624 15:31:11.335498 14340 deprecation_wrapper.py:119] From C:\Users\user\Mask1\Mask_RCNN\mrcnn\model.py:722: The name tf.sparse_tensor_to_dense is deprecated. Please use tf.sparse.to_dense instead.

W0624 15:31:11.481072 14340 deprecation.py:323] From C:\Users\user\Mask1\Mask_RCNN\mrcnn\model.py:772: to_float (from tensorflow.python.ops.math_ops) is deprecated and will be removed in a future version. Instructions for updating: Use tf.cast instead.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:18 (2 by maintainers)

github_iconTop GitHub Comments

46reactions
mertakcincommented, Jun 26, 2019

Guys I solved the problem. I was using Tensorflow 1.14.0. I just installed Tensorflow 1.5.0 and I am not getting these errors now. Thank you!

30reactions
cserpellcommented, Jun 24, 2019

They are not errors, they are just warnings. You can either ignore them, or help updating keras source code to avoid using deprecated tensorflow code.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TensorFlow version compatibility
This document is for users who need backwards compatibility across different versions of TensorFlow (either for code or data), ...
Read more >
Everything You Need To Know About TensorFlow 2.0 To Write ...
TensorFlow 2.0 comes with a well-structured set of libraries and packages. All deprecated libraries have been removed and tf.* namespace has ...
Read more >
Dealing with Deprecation in TensorFlow — Fixing a ... - Medium
Deprecation occurs in all software and AI libraries are no exception. In fact, the TensorFlow libraries are notorious for being deprecated.
Read more >
TensorFlow Version Upgrade and Deprecation of Unsecure ...
Watson Machine Learning will support TensorFlow versions 1.14 in deployment and training runtimes.
Read more >
Issues with depricated functions in tensor flow 2.0.0-alpha0 ...
As everyone know the new version of tensor flow is available now. And they provide a tool to upgrade your code easily using...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found