|
--- |
|
library_name: ultralytics |
|
pipeline_tag: object-detection |
|
tags: |
|
- ultralytics |
|
- yolov11 |
|
widget: |
|
- src: https://huggingface.co/pillowl/learn/resolve/main/001481.jpg |
|
example_title: YOLOv11 Object Detection |
|
base_model: |
|
- Ultralytics/YOLO11 |
|
--- |
|
|
|
# 我的第一个学习模型 (YOLOv11) |
|
|
|
这是一个使用 YOLOv11 训练的物体检测模型。 |
|
|
|
## 模型描述 |
|
|
|
(在这里写下你的模型是用来检测什么的) |
|
|
|
## 如何使用 (Python - Ultralytics) |
|
|
|
```python |
|
from ultralytics import YOLO |
|
|
|
# 加载你托管在Hugging Face上的模型 |
|
# 注意:这里的模型ID应为 "YourUsername/YourRepoName" |
|
model = YOLO("pillowl/learn") |
|
|
|
# 定义一个图片源 |
|
source = '[https://huggingface.co/pillowl/learn/resolve/main/001481.jpg](https://huggingface.co/pillowl/learn/resolve/main/001481.jpg)' |
|
|
|
# 进行推理预测 |
|
results = model.predict(source=source) |