摘要: 一 阅读全文
posted @ 2021-07-24 23:50 kuaqi 阅读(14) 评论(0) 推荐(0) 编辑
摘要: 一、 阅读全文
posted @ 2021-07-24 23:50 kuaqi 阅读(36) 评论(0) 推荐(0) 编辑
摘要: 一、一般模型搭建 1、使用sequential建立模型 data_augmentation = keras.Sequential([ layers.experimental.preprocessing.RandomFlip("horizontal", input_shape=(img_height, 阅读全文
posted @ 2021-07-24 23:47 kuaqi 阅读(310) 评论(0) 推荐(0) 编辑
摘要: 一、数据加载 1、加载文件夹下图片数据:不同类图片放在不同的文件夹下 batch_size = 32 #next(iter(train_ds)),一次迭代32张图片img_height = 224img_width = 224 train_ds = tf.keras.preprocessing.im 阅读全文
posted @ 2021-07-24 23:37 kuaqi 阅读(706) 评论(0) 推荐(0) 编辑