-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathval.py
More file actions
20 lines (17 loc) · 702 Bytes
/
Copy pathval.py
File metadata and controls
20 lines (17 loc) · 702 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# from ultralytics.utils.benchmarks import benchmark
from ultralytics import YOLO
if __name__ == '__main__':
# Benchmark on GPU
# benchmark(model="last.pt", data="data/uav.yaml", imgsz=1088, half=False, device=0,verbose=True)
# # Validate on CPU
# model = YOLO("last.pt")
# model.val(data="data/uav.yaml", imgsz=1088, verbose=True, device="cpu")
# Validate on GPU
model = YOLO('/data2/wuyuchen/Tracking_benchmark/runs/train/yolo113/weights/best.pt')
model.val(data='dataset/data.yaml',
imgsz=1088,
batch=16,
verbose = True,
project='runs/val',
name='exp'
)