220101专题

造车先做三蹦子220101--机器学习字符(字母、和数字识别)的“小白鼠”与“果蝇”

“0”数字字符零 的图片(16*16点阵): #Letter23Digital23R231006d.pyimport torchimport torch.nn as nnimport torch.optim as optim #optimizer = optim.SGD(model.parameters(), lr=0.01)from PIL import Imagefr

造车先做三蹦子220101--机器学习字符(字母、和数字识别)的“小白鼠”与“果蝇”

“0”数字字符零 的图片(16*16点阵): import torchimport torch.nn as nnimport torch.optim as optimfrom PIL import Image, ImageDraw, ImageFontfrom torchvision import transformsimport matplotlib.pyplot as