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.

`flipHorizontal` option of the `segmentPerson` method in bodyPix doesn't work

See original GitHub issue

Please make sure that this is a bug. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:bug_template

System information

  • Have I written custom code (as opposed to using a stock example script provided in TensorFlow.js):
  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): WSL running Linux Ubuntu 20.04
  • Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:
  • TensorFlow.js installed from (npm or script link): npm (yarn)
  • TensorFlow.js version (use command below): 3.15.0
  • Browser version: Chrome version 101.0.4951.67 (official build) (64-bit)
  • Tensorflow.js Converter Version: 3.15.0

Describe the current behavior The segmentPerson method of the bodyPix network doesn’t consider the option flipHorizontal.

Describe the expected behavior The image should be flipped horizontally before segmentation based on the boolean value of the flipHorizontal option.

Standalone code to reproduce the issue Provide a reproducible test case that is the bare minimum necessary to generate the problem. If possible, please share a link to Colab/CodePen/any notebook. It’s enough to try out the segmentPerson method with different values to see that it is not being considered.

Other info / logs Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached. BodyPix version: 2.2.0

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
rthadurcommented, May 17, 2022

We are in the process of updating the models to reference correct one. Apologies for the inconvenience . Glad it worked for you. Closing this request.

0reactions
google-ml-butler[bot]commented, May 17, 2022

Are you satisfied with the resolution of your issue? Yes No

Read more comments on GitHub >

github_iconTop Results From Across the Web

@flyingmrwang/body-pix - npm
This model can be used to segment an image into pixels that are and are not part of a person, and into pixels...
Read more >
TensorFlowJS Canvas Size Error - How to get image ...
in my case video that I was transfering didn't had width and height, setting this up fix this
Read more >
[Updated] BodyPix: Real-time Person Segmentation in the ...
Importantly, the model works for a single person so make sure your input data does not contain multiple people. Part 1: Importing the...
Read more >
Virtual Background in webcam with Body Segmentation ...
In order to process segmentation, we first need to load the pre-trained BodyPix model, by calling the API of bodyPix.load(modelConfig) .
Read more >
BodyPix hello world - Jim Fisher
It could help to run Handpose where BodyPix detects a hand, then add the detected fingers to the mask. A second problem: BodyPix...
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