视频讲解:中文核心:swin transformer 农作物病虫害识别_哔哩哔哩_bilibili
项目展示:
代码:
#各种包的加载
import os
import pandas as pd
from PIL import Image
import torch
import torch.nn as nn
from torch.utils.data import Dataset
import torch.utils.checkpoint as checkpoint
from torchvision import transforms,models,utils
from torch import nn, einsum
import torch.nn.functional as F
from tqdm import tqdm
from keras.preprocessing.image import ImageDataGenerator, load_img, img_to_array, array_to_img
from keras.models import Sequential
from keras.layers import Conv2D, MaxPool