Instructions to use nakamura196/yolov8m-wavy-line-detection with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ultralytics
How to use nakamura196/yolov8m-wavy-line-detection with ultralytics:
from huggingface_hub import hf_hub_download from ultralytics import YOLO # pick the weights file from this repo's "Files and versions" tab weights = hf_hub_download("nakamura196/yolov8m-wavy-line-detection", "<weights>.pt") model = YOLO(weights) source = 'http://images.cocodataset.org/val2017/000000039769.jpg' model.predict(source=source, save=True) - Notebooks
- Google Colab
- Kaggle
YOLOv8 model to detect wavy lines in images
Inference
Supported Labels
["line"]
How to use
pip install ultralyticsplus
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()
- Downloads last month
- 8
Evaluation results
- mAP50-95(B)self-reported0.566
- mAP50(B)self-reported0.925