解决pytorch中执行图像不显示报错的问题

num_epochs = 10

d2l.train_ch3(net, train_iter, test_iter, loss, num_epochs, trainer)

解决pytorch中执行图像不显示报错的问题_第1张图片

在图像识别之前改变matplotlib的版本

!pip3 uninstall matplotlib -y

!pip3 install matplotlib==3.0.1

你可能感兴趣的:(pytorch,python,人工智能)