- TensorFlow Hub is a way to share pretrained model components. 即 TensorFlow 是分享已经训练好的模型组件的一种方式
- 关于在开头给出的链接中,我运行其中代码的时候遇到的问题:
classifier = tf.keras.Sequential([
hub.KerasLayer(classifier_url, input_shape=IMAGE_SHAPE+(3,))
])
# 执行上面代码的时候,等了一段不短的时间等来了urlerr: connection time out
# 我使用google访问上面的链接的---所以我已经翻墙了,哈哈
# 好像昨天我也遇到了类似的问题,明明成功翻墙了,但是仍然 connection timed out
# 于是我到浏览器里面打开 classifier_url ,点击页面中的按钮成功下载了一个压缩文件
# 获取解压后的文件的本地绝对路径(file:///....),令 classifier_url = "file:///...."
# successful!
- 之后一顿 ctrl+c ctrl+v 操作,毫无障碍