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

Step by Step Guide On MacOSX #13

Open
airman00 opened this issue May 4, 2019 · 7 comments
Open

Step by Step Guide On MacOSX #13

airman00 opened this issue May 4, 2019 · 7 comments

Comments

@airman00
Copy link

airman00 commented May 4, 2019

Hope this is helpful for others. I have tested it on Mojave. Great library!

# How to Install on MacOSX #
git clone https://github.com/rwightman/posenet-python.git  # Clone Git Repo
cd posenet-python/ # Change directory to project 
virtualenv venv     # Create a virtual environment
source venv/bin/activate # Activate Virtual Environment
sudo pip3 install tensorflow scipy pyyaml opencv-python==3.4.5.20 # Install necessary packages

Run the demo!
python3 webcam_demo.py

@srego
Copy link

srego commented Aug 7, 2019

Thanks. Every time I run this I get the error below. Any chance you can help? Thanks!

UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte

@MForMarlon
Copy link

@srego Which part are you trying to run?

@LongZhai
Copy link

LongZhai commented Oct 20, 2019

when I run the "python3 webcam_demo.py" and the error below pops up
AttributeError: module 'tensorflow' has no attribute 'Session'
ts 2.0 cpu was installed after pip install command

Uninstalling ts 2 and installing ts 1 will solve the problem, but a bunch of warning will show up

@b005t3r
Copy link

b005t3r commented Dec 5, 2019

Well, it doesn't quite work:

python3 image_demo.py 
[libprotobuf ERROR google/protobuf/descriptor_database.cc:394] Invalid file descriptor data passed to EncodedDescriptorDatabase::Add().
[libprotobuf FATAL google/protobuf/descriptor.cc:1359] CHECK failed: GeneratedDatabase()->Add(encoded_file_descriptor, size): 
libc++abi.dylib: terminating with uncaught exception of type google::protobuf::FatalException: CHECK failed: GeneratedDatabase()->Add(encoded_file_descriptor, size): 
Abort trap: 6

@alam-haha
Copy link

alam-haha commented Aug 11, 2020

when I run the "python3 webcam_demo.py" and the error below pops up
AttributeError: module 'tensorflow' has no attribute 'Session'
ts 2.0 cpu was installed after pip install command

Uninstalling ts 2 and installing ts 1 will solve the problem, but a bunch of warning will show up

you can try to change tf.Session() to tf.compat.v1.Session()

@popoolasubomi
Copy link

Yaa @alam-haha , but the moment we do that we get ->
AttributeError: module 'tensorflow' has no attribute 'global_variables_initializer'

@azarkiel
Copy link

azarkiel commented Jun 2, 2021

when I run the "python3 webcam_demo.py" and the error below pops up
AttributeError: module 'tensorflow' has no attribute 'Session'
ts 2.0 cpu was installed after pip install command

Uninstalling ts 2 and installing ts 1 will solve the problem, but a bunch of warning will show up

that worked for me.

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

8 participants