【发布时间】:2022-09-24 20:45:21
【问题描述】:
运行这段代码:
#loading test images
val_ds = tf.keras.preprocessing.image_dataset_from_directory(
test_path,image_size=(img_height,img_width), label_mode=\'int\',
batch_size=batch_size)
import matplotlib.pyplot as plt
plt.figure(figsize=(12,12))
for img ,label in val_ds.take(1):
for i in range(12):
ax = plt.subplot(4,3,i + 1)
plt.imshow(img[i].numpy().astype(\'uint8\'))
plt.title(class_name[label[i]])
plt.axis(\'off\')
我收到了这个错误:
NotFoundError:NewRandomAccessFile 无法创建/打开:D:\\Machine Learning\\DPL\\使用 TensorFlow 进行计算机视觉深度学习 2[TutsNode.com] - 使用 TensorFlow 进行计算机视觉深度学习 2\\3。卷积神经网络\\15.1 covid19\\covid19\\test\\Covid\\auntminnie-a-2020_01_28_23_51_6665_2020_01_28_Vietnam_coronavirus.jpeg : 该系统找不到指定的路径。 ;没有这个过程
[[{{node ReadFile}}]] [Op:IteratorGetNext]有什么帮助吗??
标签: python tensorflow keras deep-learning