Wednesday, 7 August 2019
/usr/bin/x86_64-linux-gnu-ld: cannot find -lboost_python3
$ cd /usr/lib/x86_64-linux-gnu$ sudo ln -s libboost_python-py35.so libboost_python3.so
Thursday, 1 August 2019
openpose: how to install
1. how to build openpose
cmake -DOpenCV_INCLUDE_DIRS=/usr/local/include \
-DOpenCV_LIBS_DIR=/usr/local/lib \
-DCaffe_INCLUDE_DIRS=/home/"${USER}"/workspace/caffe3/distribute/include \
-DCaffe_LIBS=/home/"${USER}"/workspace/caffe3/build/lib/libcaffe.so -DBUILD_CAFFE=OFF ..
cmake -Dpython_version=3 -DBUILD_PYTHON=1 -DCMAKE_INSTALL_PREFIX=/home/ninja/workspace/openpose/build/install ..
make all -j32
sudo make install
export PYTHONPATH=/home/ninja/workspace/openpose/build/install/python
2. how to run testing
./build/examples/openpose/openpose.bin --video examples/media/video.avi
CUDA_VISIBLE_DEVICES=0 ./build/examples/openpose/openpose.bin --net_resolution "160x80" --video examples/media/video.avi
3. how to use python library
ninja@pp-pc:~/workspace/openpose$ python build/examples/tutorial_api_python/01_body_from_image.py
(an output image will be shown)
4. how to use docker (failed)
docker run -it --rm --runtime=nvidia -e NVIDIA_VISIBLE_DEVICES=0 cwaffles/openpose-python
apt-get install xauth
docker run -it --rm --runtime=nvidia -e NVIDIA_VISIBLE_DEVICES=0 openpose:docker
cmake -DOpenCV_INCLUDE_DIRS=/usr/local/include \
-DOpenCV_LIBS_DIR=/usr/local/lib \
-DCaffe_INCLUDE_DIRS=/home/"${USER}"/workspace/caffe3/distribute/include \
-DCaffe_LIBS=/home/"${USER}"/workspace/caffe3/build/lib/libcaffe.so -DBUILD_CAFFE=OFF ..
cmake -Dpython_version=3 -DBUILD_PYTHON=1 -DCMAKE_INSTALL_PREFIX=/home/ninja/workspace/openpose/build/install ..
make all -j32
sudo make install
export PYTHONPATH=/home/ninja/workspace/openpose/build/install/python
2. how to run testing
./build/examples/openpose/openpose.bin --video examples/media/video.avi
CUDA_VISIBLE_DEVICES=0 ./build/examples/openpose/openpose.bin --net_resolution "160x80" --video examples/media/video.avi
3. how to use python library
ninja@pp-pc:~/workspace/openpose$ python build/examples/tutorial_api_python/01_body_from_image.py
(an output image will be shown)
4. how to use docker (failed)
docker run -it --rm --runtime=nvidia -e NVIDIA_VISIBLE_DEVICES=0 cwaffles/openpose-python
apt-get install xauth
docker run -it --rm --runtime=nvidia -e NVIDIA_VISIBLE_DEVICES=0 openpose:docker
modules/python_bindings_generator/pyopencv_generated_include.h' failed
1. cd to workspace/opencv
2. then type,
2. then type,
python ./modules/python/src2/gen2.py ./build/modules/python_bindings_generator ./build/modules/python_bindings_generator/headers.txt
3.after that, continue as usual cmake and make
/usr/lib/x86_64-linux-gnu/libunwind.so.8: undefined reference to `lzma_index_end@XZ_5.0'
may be python version is wrong, try
cmake -Dpython_version=3 ..
cmake -Dpython_version=3 ..
how to mount the host folder into docker folder
docker run -it --rm --runtime=nvidia -e NVIDIA_VISIBLE_DEVICES=0 -v /home/ninja/tmp/:/openpose/tmp openpose:docker
-v host_folder:docker_folder
-v host_folder:docker_folder
Subscribe to:
Posts (Atom)
