Paddle.js
Paddle.js copied to clipboard
continuous performance degradation when running tiny_pose
Hi again,
I've successfully converted pp tiny_pose (256 & 128 versions) to paddle.js env, & all works out smoothly.
However, after a while (10~20s) the predict
function becomes slower & slower, from (initially) 50ms
to 200ms
& so on.
To reproduce the effect please check out: (replace mobilenet
example folder with this & do webpack.)
(http-server -o
and go to 127.0.0.1:8080
, as this requests your camera & needs to run on localhost to avoid https policy)
The program is running in chrome
, with a 2019 macbook pro
with dGPU
, paddle.js webgl backend
.
Although in the end, this issue may closely tied to the converted model, I still think it would be helpful for the community to provide some insights on how to deal with this during model adaptation process.
Thanks!
ok~ we'll follow the issue.
Thanks!
试一下 最新版本 看一下 https://github.com/PaddlePaddle/Paddle.js/pull/396 https://github.com/PaddlePaddle/Paddle.js/pull/398
@paddlejs/[email protected] @paddlejs/[email protected]
@luan007 你转换的这个avg RT=120ms... 我转换的压根没法跑起来,转换后的模型如附件model.zip
模型转换使用的是paddlejsconverter https://bj.bcebos.com/v1/paddledet/models/keypoint/tinypose_enhance/tinypose_128x96.zip 但是运行后返回值如下:[ { "conv2d_441.tmp_1": [ ..., 11.171875 ] }, { "argmax_0.tmp_0": [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] } ]
@JingyuanZhang 帮忙分析下呗。