From af1bed54eaa66199203e71f9a6d4e56fbcdb4f80 Mon Sep 17 00:00:00 2001 From: yukun-hh Date: Sun, 12 Apr 2026 14:39:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A8=A1=E5=9E=8B=E8=A7=84=E8=8C=83=E9=87=8D?= =?UTF-8?q?=E5=91=BD=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model.py => Model.py | 0 train.py => Train.py | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename model.py => Model.py (100%) rename train.py => Train.py (99%) diff --git a/model.py b/Model.py similarity index 100% rename from model.py rename to Model.py diff --git a/train.py b/Train.py similarity index 99% rename from train.py rename to Train.py index cf67ef5..6c87c69 100644 --- a/train.py +++ b/Train.py @@ -11,7 +11,7 @@ import torch.nn as nn import torch.optim as optim from tqdm import tqdm # 进度条,可选 import matplotlib.pyplot as plt -from model import Net +from Model import Net def train_one_epoch(model, train_loader, criterion, optimizer, device, epoch): """训练一个epoch"""