Skip to content

Latest commit

 

History

History
68 lines (41 loc) · 1.76 KB

performance.md

File metadata and controls

68 lines (41 loc) · 1.76 KB

Performance Studies

Might be out of date.

Profiling Decoder

a COCO image

Run predict with the --profile option:

python3 -m openpifpaf.predict --checkpoint resnet152 \
  docs/coco/000000081988.jpg --show --profile --debug

This will write a stats table to the terminal and also produce a decoder.prof file. You can use flameprof (pip install flameprof) to get a flame graph with flameprof decoder.prof > docs/coco/000000081988.jpg.decoder_flame.svg:

flame graph for decoder on a COCO image

Large image

e.g., from NuScenes:

a NuScenes image

python3 -m openpifpaf.predict --checkpoint resnet152 \
  docs/nuscenes/test.jpg --show --profile --debug

Then create the flame graph with flameprof decoder.prof > docs/nuscenes/test.jpg.decoder_flame.svg to produce:

flame graph for decoder on a NuScenes image

Crowded image

crowded image

python3 -m openpifpaf.predict --checkpoint resnet152 \
  docs/crowd.png --show --profile --debug

Then create the flame graph with flameprof decoder.prof > docs/crowd.png.decoder_flame.svg to produce:

flame graph for decoder on a crowded image

Low quality crowded scene

Mochit station image

python3 -m openpifpaf.predict --checkpoint resnet152 \
  docs/mochit_station_example.jpg --show --profile --debug

Then create the flame graph with flameprof decoder.prof > docs/mochit_station_example.jpg.decoder_flame.svg to produce:

flame graph for decoder on a Mochit station image