1) made code compatible with latest version of tensorflow (tf2);
2) updated deprecated tensorflow.contrib.slim
-> with tf_slim;
3) updated deprecated linear_assignment from sklearn.utils.linear_assignment_
-> with linear_sum_assignment from scipy.optimize;
4) updated deprecated numpy.int and numpy.float
-> with int and float python built-in functions.
1) made code compatible with latest version of
tensorflow
(tf2); 2) updated deprecatedtensorflow.contrib.slim
-> withtf_slim
; 3) updated deprecatedlinear_assignment
fromsklearn.utils.linear_assignment_
-> withlinear_sum_assignment
fromscipy.optimize
; 4) updated deprecatednumpy.int
andnumpy.float
-> withint
andfloat
python built-in functions.