Keras使用tensorflowjs部署demo

pip install tensorflowjs

import tensorflowjs as tfjs

from keras.models import load_model

model = load_model("model.h5")

tfjs_target_dir = "  "

tfjs.converters.save_keras_model(model,tfjs_target_dir)

猜你喜欢

转载自www.cnblogs.com/panda-s/p/10089644.html