question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BodyPix]A memory leak coused while running segmentPerson in Firefox

See original GitHub issue

To get help from the community, we encourage using Stack Overflow and the tensorflow.js tag.

TensorFlow.js version

1.2

Browser version

Firefox 76.0.1 (64 bit) [OS:Windows 10]

Describe the problem or feature request

I want to distinguish between the person and the background from the webcam video in Firefox. However, running segmentPerson in a loop causes a memory leak. For example, even on the BodyPix demo site, a memory leak occurs in Firefox. https://storage.googleapis.com/tfjs-models/demos/body-pix/index.html So I want to run segmentPerson without memory leak in Firefox, is there a workaround?

Thanks

Code to reproduce the bug / link to feature request

If you would like to get help from the community, we encourage using Stack Overflow and the tensorflow.js tag.

GitHub issues for this repository are tracked in the tfjs union repository.

Please file your issue there, following the guidance in that issue template.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:10

github_iconTop GitHub Comments

2reactions
jinjingforevercommented, Jun 8, 2021

Thanks for the report! The fix should go out in the next release. For now I updated the demo with the fix and it should work in Firefox without memory leaks.

1reaction
luxaritascommented, Jun 4, 2021

Per fangfufu/Linux-Fake-Background-Webcam#100, there seems to be a memory leak in bodypix on Node as well (with recent versions of tfjs/bodypix). I don’t know enough to say if it’s definitely related, but it seems likely.

Read more comments on GitHub >

github_iconTop Results From Across the Web

tensorflow.js - [BodyPix]A memory leak coused while running ...
However, running segmentPerson in a loop causes a memory leak. For example, even on the BodyPix demo site, a memory leak occurs in...
Read more >
Firefox uses too much memory or CPU resources - How to fix
To determine if an extension or theme is causing Firefox to use too many resources, start Firefox in Troubleshoot Mode and observe its...
Read more >
Memory leak / Handle leak | Firefox Support Forum
Here is a fairly simple explanation for a memory leak: A Memory leak occurs when your computer closes an open program and that...
Read more >
Firefox Memory leak. - Mozilla Support
The problem ended up being PIA (Private internet access) high CPU usage and memory leak stopped after FULL removal not just disable.
Read more >
Firefox 8 Memory Leak - Mozilla Support
Uncheck the box for the ZoneAlarm Browser Security, restart, run Firefox with a new testing profile. See if this makes a difference and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found