-
Notifications
You must be signed in to change notification settings - Fork 183
Description
I'm newbie on tensorflow and pose estimation.
I just followed all the steps described on main info.
Before that I created a conda environment to isolate the project.
Also I downloaded image folder with get_test_images.py script.
But when I execute both demos (image_demo.py and webcam_demo.py) terminal says:
AttributeError: module 'tensorflow' has no attribute 'Session'
I've tried these commands:
python image_demo.py --model 101 --image_dir ./images --output_dir ./output
python webcam_demo.py
I've got this on terminal:
2021-06-02 13:53:01.569440: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cudart64_101.dll
Traceback (most recent call last):
File "image_demo.py", line 74, in
main()
File "image_demo.py", line 21, in main
with tf.Session() as sess:
AttributeError: module 'tensorflow' has no attribute 'Session'
And for webcam_demo:
2021-06-02 13:55:10.650564: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cudart64_101.dll
Traceback (most recent call last):
File "webcam_demo.py", line 66, in
main()
File "webcam_demo.py", line 19, in main
with tf.Session() as sess:
AttributeError: module 'tensorflow' has no attribute 'Session'
The related package versions that I have installed are:
tensorboard 2.4.0 pyhc547734_0
tensorboard-plugin-wit 1.6.0 py_0
tensorflow 2.1.0 gpu_py36h3346743_0
tensorflow-base 2.1.0 gpu_py36h55f5790_0
tensorflow-estimator 2.5.0 pyh7b7c402_0
tensorflow-gpu 2.1.0 h0d30ee6_0
cudatoolkit 10.1.243 h74a9793_0
cudnn 7.6.5 cuda10.1_0
python 3.6.13 h3758d61_0
opencv-python 3.4.5.20 pypi_0
PD: I have got an GTX 1060 on my laptop.
Any suggestion?