1.数据集分为训练集和测试集
2.训练集如下所示
第一个文件夹是细菌斑叶(449张)
第二个是健康叶子(4014张)
测试集
细菌斑叶 11张
健康叶子10张
import numpy as np
import os
import matplotlib.pyplot as plt
import cv2
import warnings
warnings.filterwarnings('ignore')
import keras
from tensorflow.keras.optimizers import Adam
from keras.models import Sequential, Model
from keras.layers import Dense, LeakyReLU, Reshape, Flatten, Input
from keras.layers import Conv2D, MaxPooling2D, Activation, Dropout, Conv2DTranspose, GlobalAveragePooling2D,BatchNormalization
#数据集https://mbd.pub/o/bread/ZJyWlp1r