alexwww94/yolov8
07
This is a Hugging Face Hub model repository created for ultraytics; you still need to install ultraytics(https://github.com/ultralytics/ultralytics)
pip install ultrayticsUsage:
from transformers import AutoModelForObjectDetection
model = AutoModelForObjectDetection.from_pretrained('alexwww94/yolov8', trust_remote_code=True, yolo_model_config={"model": 'yolov8n'})
model('example.jpg')Parameters for creating the yolov8 model are defined in yolomodelconfig. Inference parameters for yolov8 can also be defined using args and kwargs:
model(*args, **kwargs)