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

does it work on windows 10? #37

Open
azarkiel opened this issue Jun 2, 2021 · 2 comments
Open

does it work on windows 10? #37

azarkiel opened this issue Jun 2, 2021 · 2 comments

Comments

@azarkiel
Copy link

azarkiel commented Jun 2, 2021

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?

@federicofusco
Copy link

What version of tensorflow are you using?

@Yash-Singh-Pathania
Copy link

tf.compat.v1.Session()
use this rather than tf.session()
For tensorflow model above 2.0

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

3 participants