akanazawa / hmr

Project page for End-to-end Recovery of Human Shape and Pose
Other
1.54k stars 395 forks source link

How to correctly measure the running time? #98

Closed saturosfz closed 5 years ago

saturosfz commented 5 years ago

First, thank the author for the meaningful repo. I measure the running time of the core function ( line 131 of demo.py ), and the running time is 1 second, much longer than real-time standard. I have already enabled my GPU. Is there anything wrong with my measure?

akanazawa commented 5 years ago

Hi,

It's because the first time it runs it needs to load the model etc and those things take a long time. The second call of model.predict will run as reported in the paper.

Best,

Angjoo