ajaichemmanam / simple_bodypix_python

A simple and minimal bodypix inference in python
76 stars 19 forks source link

Tensorflow Eager Execution #5

Closed ajaichemmanam closed 4 years ago

ajaichemmanam commented 4 years ago

Following errors may occur if eager execution not enabled for TF <2.x Cannot convert a symbolic Tensor (Cast:0) to a numpy array or AttributeError: 'Tensor' object has no attribute 'numpy'

ajaichemmanam commented 4 years ago

Use this code after importing tensorflow. tf.enable_eager_execution() or tf.compat.v1.enable_eager_execution() depending on tensorflow versions