Replies: 4 comments 5 replies
-
@jodeleeuw Do you have any idea about this? We are working together with @ffigari and we have no clue :( |
Beta Was this translation helpful? Give feedback.
-
Is there a chance that this is based on the number of samples that are being stored in jsPsych's data structure? FWIW, I've been able to run eye tracking experiments using the forked copy that have recorded data for similar, and sometimes longer, periods of time. But the last study I ran was using v6.3.1 and was about 10 months ago, so things may have changed since then. My summer project, fwiw, is to dive into the eyetracking stuff more and try and get a better solution built for the kinds of tracking that people typically want to do in experiments. But I don't have enough time available to do any serious work on it before May. |
Beta Was this translation helpful? Give feedback.
-
Amazing! I will check this out very soon. And the code looks cleaner. Thank you! |
Beta Was this translation helpful? Give feedback.
-
hi all, I think this should be resolved in the current version of webgazer now? Thanks so much @ffigari for your help identifying and also solving the issue |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm looking to run eye tracking over a couple of blocks (~3) of many repetitions each (~150) of short (~2.5 seconds) tasks. This results in needing to run the eye tracker continuously for around 20 minutes. But when using JSPsych and its WebGazer fork I'm getting crashes after ~10 minutes, some times even ~4 minutes.
At the end there is a minimum working code example with which I got to replicate this issue.
The culprit here is most probably WebGazer but there is already an opened issue there and it is not getting much attention.
Did someone run into similar issues? Were you able to solve it somehow? Or was it not possible?
Any tip on how to debug this? Or any debugging done already?
On Firefox I'm not getting any error output when the crash occurs, but on Chrome I got
and some other webgl and tensorflowjs related errors.
Crashes also seem to occur faster on Firefox (~180 seconds) than on Chromium (~400).
tensorflow js's face landmark model's current demo run smoothly (~18 fps) for >20 minutes on this same notebook I'm getting the crashes.
Webgazer uses @tensorflow-models/facemesh v0.0.3 which has been marked as deprecated on its npm page in favor of @tensorflow-models/facemesh.
I doubt this versions detail is strictly related to the crashing tabs. At the end of the day both packages share the same goal of providing the facemesh.
Any ideas?
The provided code mimics the real use case. At the beginning and every 50 trials of the same short task a "free calibration" step is provided in which at least one calibration points has to be given.
index.html
:index.js
:install script in case it's useful:
edit 14/02
We kept doing some experiments on this topic and turns out that the crash does not occur in all machines.
I actually got the following error on FF after ~7,5 minutes:
I also added a couple of prints before and after the call and the "after" console log would not get printed in the last iteration.
Besides, for our use case the re-calibration on mouse move was not needed. Because of that the ridge regression coefficients would remain the same over lot of iterations. I tried computing those coefficients explicitly when needed but got similar crash results.
This last thing discards some hypothesis we had about the CPU getting over used and this being the cause of the crash. The crash seems to happen after some constant amount of estimations. We tried adding a couple of "while True" loops in parallel (to force CPU usage) and counter-intuitively this would delay the crash in terms of time, the amount of iterations however would remain the same as before the change. It's worth noting all these experiments were very informal.
These things we tried would suggest that the issue is actually with the facemesh model. The one used by WG is a deprecated model so maybe updating it to the one that TF now offers helps? The strangest thing to me is how this seems to happen after a constant amount of estimations, but that seems to depend heavily on the architecture
edit 18/02
I ran https://github.com/jodeleeuw/219-eyetrack-example-full and it worked ok. I then increased the amount of iterations from 100 to 500 and it crashed on FF after ~12 minutes which seems consistent with the other reports.
Beta Was this translation helpful? Give feedback.
All reactions