Daniil-Osokin / lightweight-human-pose-estimation-3d-demo.pytorch

Real-time 3D multi-person pose estimation demo in PyTorch. OpenVINO backend can be used for fast inference on CPU.
Apache License 2.0
656 stars 138 forks source link

conda PYTHONPATH could offer method? #6

Closed mathpopo closed 4 years ago

mathpopo commented 4 years ago
Add build folder to PYTHONPATH:

export PYTHONPATH=pose_extractor/build/:$PYTHONPATH

but my evn is conda ,so from pose_extractor import extract_poses ImportError: cannot import name 'extract_poses'

mathpopo commented 4 years ago

https://github.com/astroconda/astroconda-contrib/issues/77

Daniil-Osokin commented 4 years ago

PYTHONPATH should work with conda. Do you have pose_extractor.so inside pose_extractor/build folder?

mathpopo commented 4 years ago

(base) @Nitro-AN515-52:~/Downloads/lightweight-human-pose-estimation-3d-demo.pytorch-master/pose_extractor$ find ./ -name "*.so" ./build/pose_extractor.so

mathpopo commented 4 years ago

i try lightweight-human-pose-estimation.pytorch no any questions

Daniil-Osokin commented 4 years ago

If you have pose_extractor/build in your PYTHONPATH, it should work. Try in python:

import pose_extractor
dir(pose_extractor)

it should list extract_poses, if not, then something went wrong. However I've checked on Ubuntu 16.04, 18.04 and it works smoothly.

Daniil-Osokin commented 4 years ago

Hey, check it out! :bomb: Now it can run without c++ module.

mathpopo commented 4 years ago

@

Hey, check it out! bomb Now it can run without c++ module. very thank you for help ,it is great work,well done.