tensorflow-windows-wheel icon indicating copy to clipboard operation
tensorflow-windows-wheel copied to clipboard

no attribute 'resize_bilinear'

Open jhaggle opened this issue 4 years ago • 1 comments

I updated to tensorflow==2.1.0 and tensorflow-gpu==2.10. When running the training script I get the following error: AttributeError: module 'tensorflow_core._api.v2.image' has no attribute 'resize_bilinear'

And it references the following function in model.py, line 12-13: def resize_bilinear(x): return tf.image.resize_bilinear(x, size=[K.shape(x)[1]*RESIZE_FACTOR, K.shape(x)[2]*RESIZE_FACTOR]) How should I solve this?

jhaggle avatar Apr 19 '20 19:04 jhaggle

Can your code be executed on the official version?

fo40225 avatar Apr 20 '20 03:04 fo40225