Converting a sharded Tesorflow Model

Viewed 100

I want to use a tensorflow.js model in a react native app locally as asset. the problem is that the web optimized model uses sharded weights in multiple files. But the react native bundleResourceIO handler expects only one file. I have tried to convert the model with the tensorflowjs_converter. Unfortunately without success because I do not know exactly what the command expects for parameters. I have for example tried the following:

tensorflowjs_converter --weight_shard_size_bytes 60000000 --input_format tfjs_layers_model --output_format tfjs_layers_model model.json unsharded_model

anyone converted a model succesfully?

1 Answers
Related