converting facemesh json and bin
See original GitHub issueHi, 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.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
@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.