预训练调整

This commit is contained in:
lee
2025-08-05 14:27:30 +08:00
parent ffe11b5255
commit d5aee7b936
2 changed files with 78 additions and 1 deletions

View File

@ -3,7 +3,7 @@ import numpy as np
# model = YOLOv10.from_pretrained('jameslahm/yolov10{n/s/m/b/l/x}')
# or
# wget https://github.com/THU-MIG/yolov10/releases/download/v1.1/yolov10{n/s/m/b/l/x}.pt
model = YOLOv10('ckpts/20250630/best_gift_v10n.pt')
model = YOLOv10('ckpts/20250701/best_gift_v10n.pt')
# result = model.predict('./data/bandage.jpg', save=True, imgsz=[224, 224], conf=0.1)
result = model.predict('/home/lc/data_center/gift/trace_subimgs/predict_actual_test/test', save=True, imgsz=[224, 224], conf=0.1)