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.

convert bodypix js model to pb

See original GitHub issue

when I followed the answer on (https://stackoverflow.com/questions/58841355/bodypix-real-time-person-segmentation?answertab=active#tab-top), I have the problem: Converting.... buffer is smaller than requested size I can’t find any information about it from source code.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
patlevincommented, Feb 10, 2020

@DCC-lzhy

So, I change the file name to be model.json, it works. Is that right?

Yes, the converter expects this name. I might change this later so you can provide any model file name, but for now the name has to be model.json.

1reaction
patlevincommented, Feb 7, 2020

Make sure that the files you downloaded are ok: the weight files (group1-shardXXof23.bin) have to have the same size (4096kB each), except for the last one (group1.shard23of23.bin), which might be smaller. The problem usually occurs, because the downloaded files are compressed. Either download the shard files via a browser or tell your download command to decompress the downloaded files, e.g.

curl -O --compressed https://storage.googleapis.com/tfjs-models/savedmodel/bodypix/resnet50/float/group1-shard[1-23]of23.bin

Does this solve your problem?

Read more comments on GitHub >

github_iconTop Results From Across the Web

convert bodypix js model to pb . then convert pb to tflite · Issue #32 ...
Hello. I wanna convert bodypix js model to pb . then convert pb to tflite. ... Download the model.json file from https://storage.googleapis.com/tfjs-models/ ...
Read more >
How to convert the body-pix models for tfjs to keras h5 or ...
js into a tensorflow frozen graph. Is it possible? I've already download the following files and tried to convert using tensorflowjs_converter, ...
Read more >
Model conversion | TensorFlow.js
js converter has two components: A command line utility that converts Keras and TensorFlow models for use in TensorFlow.js. An API for loading ......
Read more >
tensorflow/tfjs-converter v3.20.0 - npm.io
Convert a TF-Hub model file to TensorFlow.js graph model format. Use tf.loadGraphModel() to load the converted model in JavaScript. tf_saved_model ...
Read more >
@tensorflow/tfjs-converter - npm
A python script that converts from a TensorFlow SavedModel to a web friendly format. If you already have a converted model, or are...
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