|
--- |
|
tags: |
|
- ultralyticsplus |
|
- yolov8 |
|
- ultralytics |
|
library_name: ultralytics |
|
library_version: 8.0.43 |
|
license: cc-by-4.0 |
|
model-index: |
|
- name: nakamura196/yolov8m-wavy-line-detection |
|
results: |
|
- task: |
|
type: object-detection |
|
metrics: |
|
- type: precision |
|
value: 0.566 |
|
name: mAP50-95(B) |
|
- type: precision |
|
value: 0.925 |
|
name: mAP50(B) |
|
pipeline_tag: object-detection |
|
--- |
|
|
|
# YOLOv8 model to detect wavy lines in images |
|
|
|
## Inference |
|
|
|
### Supported Labels |
|
|
|
```python |
|
["line"] |
|
``` |
|
|
|
### How to use |
|
|
|
```bash |
|
pip install ultralyticsplus |
|
``` |
|
|
|
```python |
|
from ultralyticsplus import YOLO, render_result |
|
|
|
# load model |
|
model = YOLO('best.pt') |
|
|
|
# set image |
|
image = "https://dl.ndl.go.jp/api/iiif/1879314/R0000039/full/640,640/0/default.jpg" |
|
|
|
# perform inference |
|
results = model.predict(image, verbose=False) |
|
|
|
# observe results |
|
render = render_result(model=model, image=image, result=results[0]) |
|
render.show() |
|
``` |
|
|