Closed gabides closed 4 years ago
@gabides What is the model you are trying to converter? can you try the earlier version of the converter (2.0.0) with an empty virtualenv?
It could be related to TF version, as well as the control_flow_v2 flag, it would be better we can isolate that.
@pyu10055 i did every test in clean separate virtualenvs for the conversion (each with only tensorflowjs installed with the specific version to test). Also i did a few more tests to answer your questions:
converter with version 2.0.0 gives the same output in terms of size as 2.3.0
I'll try to find a public model for reproducibility and post it here. Also maybe related: the models I am trying to convert are coded and exported to saved_model format from tf.keras (tensorflow==1.14)
@gabides can you try to export your model with TF 2, since tfjs 2.x are using at lease 2.1 TF.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 dyas if no further activity occurs. Thank you.
Closing as stale. Please @mention us if this needs more attention.
TensorFlow.js version
2.3.0
Browser version
N/A
Describe the problem or feature request
I upgraded to pip tensorflowjs 2.3.0 from 1.3.2 and now the models converted by tensorflowjs_converter are significantly heavier (around 60% more, regardless of quantization).
previously with
pip install tensorflowjs==1.3.2
:=> size 3.3 MB
=> size 1 MB
now with
pip install tensorflowjs==2.3.0
with thetensorflowjs_wizard
generated command :=> size 5.3 MB
=> size 1.6 MB
both converted models size have increased by 60% compared to tensorflowjs 1.3.2. is this expected behaviour or a bug, or maybe there is an option I missed?
Thanks