Closed msyazwan closed 3 years ago
Your model is a TFJS layer model. This converter only supports TFJS graph models as input.
You can load and save TFJS layer models directly without using a converter like so:
import tensorflowjs as tfjs
model = tfjs.converters.load_keras_model('./content/')
model.save('./content/saved_model')
Since this is the second time within just a few days this came up, I'll leave this open anyway and change the error message in the converter accordingly to avoid confusion in the future.
Your model is a TFJS layer model. This converter only supports TFJS graph models as input.
You can load and save TFJS layer models directly without using a converter like so:
import tensorflowjs as tfjs model = tfjs.converters.load_keras_model('./content/') model.save('./content/saved_model')
Since this is the second time within just a few days this came up, I'll leave this open anyway and change the error message in the converter accordingly to avoid confusion in the future.
Thank you so much!
Hi,
I'm trying to convert my tfjs model (downloaded from Teachable Machine) to tf model with .pb format.
I ran the command below and get the following error.
_google.protobuf.json_format.ParseError: Message type "tensorflow.GraphDef" has no field named "classname".