视频讲解:Vision Transformer的鸟类图像分类(200个类别)完整代码+数据_哔哩哔哩_bilibili
import os import math import random import argparse from time import time import glob import sys from pathlib import Path from typing import Iterable, Optional # import ssl import numpy as np import torch import torch.multiprocessing torch.multiprocessing.set_sharing_strategy('file_system') import torch.nn as nn import torchvision from torch.utils.tensorboard import SummaryWriter from PIL import Image import timm from timm.utils import accuracy from sklearn.