хуй знает что там

This commit is contained in:
Alexander Popov 2024-02-24 19:30:01 +03:00
parent c7516d542c
commit 1cb337c7b1

View File

@ -1,23 +1,27 @@
from ultralytics import YOLO
model = YOLO('yolov8m.pt')
model = YOLO('yolov8s.pt')
model.save_dir = './predict/'
result = model.predict(
'./Assets/cat_dog.jpg',
save=True,
device='cpu',
project='test',
name='ololo',
device=0,
show=False,
classes=[16, 15],
)[0]
result = model(
'./Assets/cat_dog.jpg',
save=True,
project='test',
name='ololo',
device='cpu',
show=False,
)[0]
# result = model(
# './Assets/cat_dog.jpg',
# save=True,
# project='test',
# name='ololo',
# device='gpu',
# show=False,
# )[0]
print(model.names)
# print(len(result.boxes))