知乎专栏 |
pip inmstall tensorboard
(.venv) neo@Neo-Mac-mini captcha % .venv/bin/tensorboard --logdir logs TensorFlow installation not found - running with reduced feature set. Serving TensorBoard on localhost; to expose to the network, use a proxy or pass --bind_all TensorBoard 2.18.0 at http://localhost:6006/ (Press CTRL+C to quit)
import tensorflow as tf model = tf.keras.models.load_model('test/seg.h5') # 加载完整模型 print(model.summary()) #展示模型的架构