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.

converting facemesh json and bin

See original GitHub issue

Hi, Thank you so much for this repository. I liked. I tried to run it with BodyPix and worked well, but when I use facemesh it generates the following problem:

attrs = _find_if_has_key(node[attr_key], key=str_key, of_type=list) KeyError: 'attr'

I tried to follow the reason, and I found some nodes in facemesh that have not this attribute (in attr_key), but it has input and the other 2 attrs (as common). Could you kindly check the reason why it is happening please? Follow the json.

https://storage.googleapis.com/tfhub-tfjs-modules/mediapipe/tfjs-model/facemesh/1/default/1/model.json

https://storage.googleapis.com/tfhub-tfjs-modules/mediapipe/tfjs-model/facemesh/1/default/1/group1-shard1of1.bin

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
patlevincommented, Mar 24, 2020

Hi! Thanks for providing the link to the model. The model contains layers that are not supported out-of-the-box by TensorFlow. Even fixing the problem with the node pre-processing won’t help, as additional work needs to be done to support the custom layers.

I’m currently looking into this and trying to find whether I can find the package that provides the custom layer and load it if necessary.

This might take a bit,but I’ll keep you posted.

1reaction
patlevincommented, Aug 19, 2020

@samuraiexx Hi!

The issue is fixed in the 1.x releases. I highly recommend using the PyPi version (currently version 1.2) as it fixes some other bugs as well.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[facemesh] Add model. (#413) · 81f35ab3b1 - tfjs-models - Gitea
MediaPipe Facemesh is a lightweight machine learning pipeline predicting 486 3D facial landmarks to infer the approximate surface geometry of a human face...
Read more >
tensorflow/tfjs-converter v3.20.0 - npm.io
Convert a TensorFlow.js Layers model (JSON + binary weight file(s)) to a Keras HDF5 model file. Use keras.model.load_model() or tf.keras.models.load_model() to ...
Read more >
Loading Saved Models for transfer learning : r/tensorflow
The FaceMesh JSON+Bin was converted to SavedModel using this : https://github.com/patlevin/tfjs-to-tf. I noticed that the top of model.json ...
Read more >
mediapipe-tensorflowjs-facemesh-demo-facetracking - CodeSandbox
bin. dist. src. index.js. settings.json. triangulation.js .babelrc .gitignore. README.md ... @tensorflow/tfjs-converter ... WIP: TornikeO's Facemesh project.
Read more >
Face Track CHOP | Derivative - TouchDesigner
bin ; expression_blendshapes_3448.bin; sfm_3448_edge_topology.json; sfm_model_contours.json; ibug_to_sfm.txt. 2. Download the mesh conversion tool ...
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