Examples#

Below are examples of predictions with OpenPifPaf’s command line tool openpifpaf.predict. These examples can serve as a starting point to create pose predictions on your own images.

COCO#

Below are example predictions from the COCO val set. These are the first images with more than five person annotations that were shared with CC-BY-2.0. These examples are not cherry-picked.

All examples are predicted with the fast model shufflenetv2k16. For more accurate results, try --checkpoint=shufflenetv2k30.

%%bash
python -m openpifpaf.predict coco/000000188465.jpg -q --image-output --long-edge=1025
import IPython
IPython.display.Image('coco/000000188465.jpg.predictions.jpeg')
_images/9a9574a7b6199b9173733a1daa90ff8c6a8894239ae6a5ce03dc0abbc5b5a65f.jpg

Image credit: Photo by Brian Jelonek shared under CC-BY-2.0.

%%bash
python -m openpifpaf.predict coco/000000114907.jpg -q --image-output
IPython.display.Image('coco/000000114907.jpg.predictions.jpeg')
_images/2ee501bc207abfa9be1a32c2a197cdd9672f2e6a87fa55fdc7b2ae2922c984e3.jpg

Image credit: Photo by Fort Rucker shared under CC-BY-2.0.

%%bash
python -m openpifpaf.predict coco/000000147740.jpg -q --image-output
IPython.display.Image('coco/000000147740.jpg.predictions.jpeg')
_images/631a0bfac3038d66c40f9bf730102ba272d1c577a19c98021832d64e61be2f45.jpg

Image credit: Photo by CCFoodTravel.com shared under CC-BY-2.0.

%%bash
python -m openpifpaf.predict coco/000000541055.jpg -q --image-output
IPython.display.Image('coco/000000541055.jpg.predictions.jpeg')
_images/4c88332a923cf79a6095dc2e509dbeacd3278ec9109a814a66135834ab80406d.jpg

Image credit: Photo by Jarrod Doll shared under CC-BY-2.0.

Debug Outputs#

%%bash
python -m openpifpaf.predict coco/000000541055_cropped.jpeg -q --image-output --debug-indices cif:5 cifhr:5 caf:5 --save-all=coco_debug_example
IPython.display.Image('coco_debug_example/0001.jpeg')  # cif:5:confidence
_images/ba8da282b86094c76512b96f059278121cf8cdc9818c93932a20650c0ed0f6ce.jpg
IPython.display.Image('coco_debug_example/0002.jpeg')  # cif:5:regression
_images/340d0d1c941dff4fe0c95577fad70a1adf4327604c1e1e613956cbd6d49278af.jpg
IPython.display.Image('coco_debug_example/0005.jpeg')  # cifhr:5
_images/fac5b6bdf6ac492e48a4b5b41aef3297b7fcd6e1885daf78fd7b59ff416176c8.jpg
IPython.display.Image('coco_debug_example/0003.jpeg')  # caf:5:confidence
_images/c96eb8456832392ea358700f7bce9ad52fdff7b52fce66cb9ce9033ec0dd38ab.jpg
IPython.display.Image('coco_debug_example/0004.jpeg')  # caf:5:regression
_images/25d384842735ffaa9a3d01de30ebb5f71e4df4c128c8281ae12baf8047637cc6.jpg

Image credit: Photo by Jarrod Doll shared under CC-BY-2.0.