DrewNF / Tensorflow_Object_Tracking_Video

Object Tracking in Tensorflow ( Localization Detection Classification ) developed to partecipate to ImageNET VID competition
MIT License
502 stars 198 forks source link

FIX tf api usage #20

Closed TITAN-PyCompat closed 5 years ago

TITAN-PyCompat commented 5 years ago

Hi developers,

When I use your repository, I found that there might be some potential detrimental usage of TensorFlow in your code and I help you modified as below:

tf.to_float and tf.to_int32 has been deprecated since tf 1.13.0 and removed in tf 2.0.0-alpha. It's better to replace it with tf.cast, otherwise, it might lead to a crash in the future.

@DrewNF Hope you could take my advice and look forward to your reply! 😃