From d13561c25fb1dc5a3354e01c5f6d06ebac45b2bb Mon Sep 17 00:00:00 2001 From: UnknownObject Date: Thu, 7 Dec 2023 19:04:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E4=BA=86main()=E4=B8=AD?= =?UTF-8?q?=E7=9A=84train()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ver3.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/ver3.py b/ver3.py index 850e0fd..68ccad5 100644 --- a/ver3.py +++ b/ver3.py @@ -51,8 +51,6 @@ def train(): model.export('G:\\Users\\15819\\Desktop\\model01.pkl') # M20.02.pkl def main(): - train() - image_path = 'G:\\Users\\15819\\Desktop\\TrainSet\\SmallCar\\京M88888.jpg' pred_class, confidence = predict_image(image_path) print(f"图片类别: {pred_class}, 置信度: {confidence}")