fashion = tf.keras.datasets.fashion_mnist
(x_train, y_train), (x_test, y_test) = fashion.load_data()

urllib.error.URLError: <urlopen error unknown url type: https>

Exception: URL fetch failure on https://storage.googleapis.com/tensorflow/tf-keras-datasets/train-labels-idx1-ubyte.gz: None -- unknown url type: https

https://blog.csdn.net/weixin_44604887/article/details/105099177

法二:

在代码中加入一行

DEFAULT_SOURCE_URL = 'http://www.cs.toronto.edu/~kriz/cifar-10-python.tar.gz'

下载cifar数据集

Logo

汇聚全球AI编程工具,助力开发者即刻编程。

更多推荐