Upload yoloe-26m-seg model
Browse files
README.md
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: agpl-3.0
|
| 3 |
+
pipeline_tag: zero-shot-object-detection
|
| 4 |
+
library_name: yolo26
|
| 5 |
+
---
|
| 6 |
+
|
| 7 |
+
# YOLOE-26M-seg
|
| 8 |
+
|
| 9 |
+
YOLOE-26 integrates the high-performance YOLO26 architecture with the open-vocabulary capabilities of the YOLOE series. It enables real-time detection and segmentation of any object class using text prompts, visual prompts, or a prompt-free mode for zero-shot inference, effectively removing the constraints of fixed-category training.
|
| 10 |
+
|
| 11 |
+
By leveraging YOLO26's NMS-free, end-to-end design, YOLOE-26 delivers fast open-world inference. This makes it a powerful solution for edge applications in dynamic environments where the objects of interest represent a broad and evolving vocabulary.
|
| 12 |
+
|
| 13 |
+
## Model Details
|
| 14 |
+
|
| 15 |
+
- **Parameters**: 27.9M
|
| 16 |
+
- **FLOPs**: 70.1B
|
| 17 |
+
- **mAP<sup>minival</sup><sub>50-95</sub> (e2e)**: 35.4 / 31.3
|
| 18 |
+
- **mAP<sup>minival</sup><sub>50-95</sub>**: 35.4 / 33.9
|
| 19 |
+
- **Input Size**: 640x640
|
| 20 |
+
|
| 21 |
+
## Usage
|
| 22 |
+
|
| 23 |
+
Install ultralytics with `pip install ultralytics`.
|
| 24 |
+
|
| 25 |
+
Download the model:
|
| 26 |
+
```python
|
| 27 |
+
from huggingface_hub import hf_hub_download
|
| 28 |
+
|
| 29 |
+
model_path = hf_hub_download(repo_id="openvision/yoloe-26m-seg", filename="model.pt")
|
| 30 |
+
```
|
| 31 |
+
|
| 32 |
+
Infer:
|
| 33 |
+
```python
|
| 34 |
+
from ultralytics import YOLO
|
| 35 |
+
from PIL import Image
|
| 36 |
+
import requests
|
| 37 |
+
|
| 38 |
+
model = YOLO(model_path)
|
| 39 |
+
url = 'http://images.cocodataset.org/val2017/000000039769.jpg'
|
| 40 |
+
names = ["striped cat"]
|
| 41 |
+
image = Image.open(requests.get(url, stream=True).raw)
|
| 42 |
+
model.set_classes(names, model.get_text_pe(names))
|
| 43 |
+
|
| 44 |
+
results = model.predict(image)
|
| 45 |
+
results[0].show()
|
| 46 |
+
```
|
| 47 |
+
|
| 48 |
+
## Documentation
|
| 49 |
+
|
| 50 |
+
For more information, visit the [official YOLO26 documentation](https://docs.ultralytics.com/models/yolo26/).
|
| 51 |
+
|
| 52 |
+
## License
|
| 53 |
+
|
| 54 |
+
This model is released under the AGPL-3.0 license.
|
model.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:214afb47524eebd80add0d8aa32f6731b2b540ff0ea42c57a20b9d76069fc756
|
| 3 |
+
size 70048027
|