хуй знает что там
This commit is contained in:
parent
c7516d542c
commit
1cb337c7b1
@ -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))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user