How to debug this Error? I am using tensorflow version 1.5.0 [closed]
tf.compact.v1.run() AttributeError: module 'tensorflow' has no attribute 'compact'
tf.compact.v1.run() AttributeError: module 'tensorflow' has no attribute 'compact'
First of, this question has nothing to do with OpenCV and is a Tensorflow one. This would be a good candidate for Stack Overflow instead.
Two issues:
compact
, it is compat
.compat
API only supports tf.compat.as_bytes
, tf.compat.as_str_any
and tf.compat.as_text
. Support for v1 and v2 compatibility was first added in TF 1.14. Either upgrade your TF to that version specific version; pip install --upgrade tensorflow==1.14
, or just update it to the newest version; pip install tensorflow
Asked: 2020-02-25 07:30:35 -0600
Seen: 360 times
Last updated: Feb 25 '20
Area of a single pixel object in OpenCV
how to understand which functions available in python bindings?
Problems installing opencv on mac with python
build problems for android_binary_package - Eclipse Indigo, Ubuntu 12.04
OpenCV DescriptorMatcher matches
Can't compile .cu file when including opencv.hpp
Weird result while finding angle
cv2.perspectiveTransform() with Python
Using OpenCV's stitching module, strange error when compositing images
sorry, this is the opencv site, we can't help you with tf problems