-
Notifications
You must be signed in to change notification settings - Fork 904
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
frame drop while running imagenet.predict #67
Comments
The video classification example is an intense task to the browser. I'm not 100% sure, but I think we might get past this using web workers. |
Anecdotally, I think you're right in inferring this is a technical
limitation. I know that when I run a GPU stress test it has an effect on
systemwide video performance, including things like YouTube and p5 sketches.
…On Sat, Feb 24, 2018 at 8:36 PM, Naoto HIÉDA ***@***.***> wrote:
I noticed during the workshop last week that p5.js canvas frame rate drops
significantly while running video classification. Here's an example output
from this code
<https://github.com/cvalenzuela/sfpc/blob/master/scripts/03_videoClassification.js>
with console.log(frameRate()) in draw().
44.2477876172749
62.11180126747634
58.139534876795196
60.240963845789416
4.321521175375056
14.684287814305357
59.52380948074774
61.72839506855966
58.479532172979155
59.171597624902525
54.34782608448077
65.78947370859808
60.240963845789416
59.8802395465879
60.97560972744388
7.41839762612301
64.93506491876796
60.975609781548265
56.17977527634279
63.29113926550177
62.499999987267074
56.17977527634279
60.606060613757485
60.97560972744388
57.803468233998
65.78947364561368
56.497175151796085
63.29113926550177
60.606060613757485
58.47953212321371
58.479532172979155
57.14285713715517
63.69426756050796
62.8930817669005
59.171597624902525
imagenet.predict(...) happens asynchronously but I think deeplearn.js is
using GPU, which is blocking canvas rendering. Is this a technical
limitation, or can we somehow continue updating the canvas while
classification job is running?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#67>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ALpedTv6RLajFB-dRXdcrhTe-uM7p8Vrks5tYOM3gaJpZM4SSKbr>
.
|
I profiled the given code and at least on my Macbook Pro it does seem like the rendering is being blocked somehow in the ~100ms after a The big spike on the left is the |
This is now resolved. see #142 |
I noticed during the workshop last week that p5.js canvas frame rate drops significantly while running video classification. Here's an example output from this code with
console.log(frameRate())
indraw()
.imagenet.predict(...)
happens asynchronously but I think deeplearn.js is using GPU, which is blocking canvas rendering. Is this a technical limitation, or can we somehow continue updating the canvas while classification job is running?The text was updated successfully, but these errors were encountered: