Sign inSign up

italu1013/tf-pose-estimation

By italu1013

Updated over 7 years ago

Image
4

66

italu1013/tf-pose-estimation repository overview

Basic info
cd ~/tf-pose-estimation && python3 -c 'import tf_pose; pose=tf_pose.infer(image="./images/p1.jpg"); print(pose)'

The result will looks like:

[BodyPart:0-(0.51, 0.16) score=0.81 BodyPart:1-(0.51, 0.22) score=0.88 BodyPart:2-(0.43, 0.22) score=0.95 BodyPart:3-(0.36, 0.29) score=0.87 BodyPart:4-(0.27, 0.32) score=0.92 BodyPart:5-(0.59, 0.22) score=0.87 BodyPart:6-(0.67, 0.34) score=0.71 BodyPart:7-(0.67, 0.46) score=0.84 BodyPart:8-(0.50, 0.47) score=0.83 BodyPart:9-(0.47, 0.62) score=0.75 BodyPart:10-(0.53, 0.83) score=0.86 BodyPart:11-(0.62, 0.46) score=0.75 BodyPart:12-(0.67, 0.62) score=0.82 BodyPart:13-(0.71, 0.78) score=0.87 BodyPart:14-(0.49, 0.15) score=0.89 BodyPart:15-(0.52, 0.15) score=0.93 BodyPart:16-(0.46, 0.14) score=0.86 BodyPart:17-(0.55, 0.14) score=0.71]

Build the image from Dockerfile:
FROM ubuntu:18.04
RUN apt-get update && apt-get install -y git && apt-get install -y wget  && \
	apt-get install -y python3.6  && apt-get -y install python3-pip  && \
	pip3 install tensorflow && \
	pip3 install opencv-python==4.0.0.21  && \
	apt-get install -y libsm6 libxrender1 libxext-dev libfontconfig1  && \
	pip3 install opencv-contrib-python  && \
	cd root/  && \
	git clone https://github.com/ildoonet/tf-pose-estimation.git  && \
	cd tf-pose-estimation  && \
	python3 setup.py install  && \
	cd models/graph/cmu && bash download.sh  

Tag summary

Content type

Image

Digest

Size

936.5 MB

Last updated

over 7 years ago

docker pull italu1013/tf-pose-estimation:20190113