Open SvSz opened 3 years ago
Hi, even i am facing the same issue, please do help if got any leads. The error i get is, AttributeError: module 'tensorflow._api.v2.image' has no attribute 'resize_bilinear'
i trained my original .h5 model on EAST architecture of TD on tf 1.14. trying to quantize this model. quantization is only supported in tf2x.
Hi @fchollet could u please help me solve the issue. AttributeError: module 'tensorflow._api.v2.image' has no attribute 'resize_bilinear'
@sahasraa According to TensorFlow Core v2.7.0 docs you should use tf.compat.v1.image.resize_bilinear
instead of tf.image.resize_bilinear
.
File "/usr/local/lib/python3.6/dist-packages/neuralgym/ops/layers.py", line 115, in
func=tf.image.resize_bilinear, name='resize'):
AttributeError: module 'tensorflow._api.v2.image' has no attribute 'resize_bilinear'
It concerns are placed here:
I tried Tensorflow 2.0 , 2.1 and 2.4.1
Is the problem only mine or will an update according to the link below help?
https://www.tensorflow.org/api_docs/python/tf/compat/v1/image/resize_bilinear