Run this model with HF Jobs
Run nakamura196/yolov8s-layout-detection on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/nakamura196/yolov8s-layout-detection. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/nakamura196/yolov8s-layout-detection on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use nakamura196/yolov8s-layout-detection with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ultralytics
How to use nakamura196/yolov8s-layout-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/yolov8s-layout-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 layout of 寛政重修諸家譜
Inference
Supported Labels
["h1", "h2", "head", "long", "other", "page", "sode", "text", "vol"]
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.671
- mAP50(B)self-reported0.947