Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'cv2.TickMeter' object has no attribute 'count' #19

Open
ccoa opened this issue Jul 24, 2019 · 0 comments
Open

AttributeError: 'cv2.TickMeter' object has no attribute 'count' #19

ccoa opened this issue Jul 24, 2019 · 0 comments

Comments

@ccoa
Copy link

ccoa commented Jul 24, 2019

Using TensorFlow 1.4, OpenCV 4.1 and Python 3.6.8 I executed:

python3 estimate_head_pose.py

And I got the following error:

OpenCV version: 4.1.0
Linux is fine! Python multiprocessing works.
WARNING: Logging before flag parsing goes to stderr.
W0724 14:13:06.219129 139818702903104 deprecation_wrapper.py:119] From /home/omar/Documents/head-pose-estimation/mark_detector.py:78: The name tf.GraphDef is deprecated. Please use tf.compat.v1.GraphDef instead.

W0724 14:13:06.219383 139818702903104 deprecation_wrapper.py:119] From /home/omar/Documents/head-pose-estimation/mark_detector.py:79: The name tf.gfile.GFile is deprecated. Please use tf.io.gfile.GFile instead.

W0724 14:13:06.366628 139818702903104 deprecation_wrapper.py:119] From /home/omar/Documents/head-pose-estimation/mark_detector.py:84: The name tf.Session is deprecated. Please use tf.compat.v1.Session instead.

2019-07-24 14:13:06.367032: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
2019-07-24 14:13:06.387688: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency: 2400000000 Hz
2019-07-24 14:13:06.387975: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x56f77e0 executing computations on platform Host. Devices:
2019-07-24 14:13:06.387997: I tensorflow/compiler/xla/service/service.cc:175] StreamExecutor device (0): ,
2019-07-24 14:13:08.168135: W tensorflow/compiler/jit/mark_for_compilation_pass.cc:1412] (One-time warning): Not using XLA:CPU for cluster because envvar TF_XLA_FLAGS=--tf_xla_cpu_global_jit was not set. If you want XLA:CPU, either set that envvar, or use experimental_jit_scope to enable XLA:CPU. To confirm that XLA is active, pass --vmodule=xla_compilation_cache=1 (as a proper command-line flag, not via TF_XLA_FLAGS) or set the envvar XLA_FLAGS=--xla_hlo_profile.
Traceback (most recent call last):
File "estimate_head_pose.py", line 143, in
main()
File "estimate_head_pose.py", line 102, in main
print(tm.getTimeSec()/tm.count())
AttributeError: 'cv2.TickMeter' object has no attribute 'count'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant